本文介绍了App Inventor 2:如何在空格处拆分的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个小问题.我想在空白处分割文本.
I have a small question. I want to split the text at the space.
例如:
应该是
我尝试使用"\ r"
,但是没有用.我不知道该怎么办.
I tried to use "\r"
,but it is no use. I don't know what can I do.
请帮助我.非常感谢你.我尝试2种方式来分割文字.但是列表长度始终为1.
Please help me. Thank you very much.I try 2 way to split the text.But the list length always 1.
推荐答案
为什么需要使用添加项目到列表?只需使用在空格处分割或在处分割文本即可.下面是代码示例.列表长度的结果为2:
Why you need to use add item to list? Just use split at space function or split text at. Below is example of code. The result of length of list is 2:
这篇关于App Inventor 2:如何在空格处拆分的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!