python字符串转为列表

q = ' "liya","y2", "7865h" '
t = q.split(',')
print(t)

# t的输出是['"liya"', '"y2"', ' "7865h"']

posted @ 2018-12-04 13:08  coffee~  阅读(241)  评论(0编辑  收藏  举报