python-数据类型转换

str转换成列表
'''
str1="abc"
print(list(str1))

[a,b,c]
'''

posted @ 2020-10-21 22:14  shooter_w  阅读(80)  评论(0编辑  收藏  举报