字符串和列表互相转换

# 用一行代码实现,字符串转成列表
# s = '1111,2222,333,4444'
# print(s.split(","))
# 用一行代码实现,列表转成字符串
# lst = ['1','2','3']
# print(''.join(lst)
原文地址:https://www.cnblogs.com/sl123/p/10221177.html