python中字符串如何转换为数组,如图及描述所示

如何将上面的转换为[1,a,ab]

# use list
alist.append('1')
alist.append('a')
alist.append('ab')

温馨提示:答案为网友推荐,仅供参考
相似回答