How do you convert text into a list?如何将文本转换成列表?

简体中文

在App Inventor中,有没有类似于Python中eval()函数这样,把一串字符(诸如'['1','2','3','4']')转换为列表的方法?非常感谢!

English

Is there a method in App Inventor similar to the eval() function in Python that converts a string of characters (such as '['1','2','3','4']') into a list? Thank you.

try the list from csv row block from the list drawer, which converts '1','2','3','4' (without the outer brackets) into a list

Taifun

use Web component
image

1 Like

谢谢,web组件完美解决了需求。
Thank you,webcomponent perfectly meets the requirements.