字符串和列表
a = 'hello,world' b = list(a) #字符串->列表 c = ''.join(b) #列表->字符串 print a print b print c
元组和列表
li = [1,2,3] tu = tuple(li) #列表->元组 New_li = list(tu) #元组->列表
字符串和元组
a = 'hello,world' b = tuple(a) #字符串->元组 c = ''.join(b) #元组->字符串 print a print b print c