1.单一字符串型元祖转字符串
t1 = ('a','b','c','d','e')
s1 = "_".join(t1)
print('t1:',t1)
print('s1:',s1)
t1: (‘a’, ‘b’, ‘c’, ‘d’, ‘e’)
s1: a_b_c_d_e
2.混合数据类型元组转字符串
t1 = ('a','b',1,2,'e')
s1 = '_'.join(map(str, t1))
print('t1:',t1)
print('s1:',s1)
t1: (‘a’, ‘b’, 1, 2, ‘e’)
s1: a_b_1_2_e
3.元组转列表
t1 = ('a','b','c','d','e')
l1 = list(t1)
print('t1:',t1)
print('l1:',l1)
t1: (‘a’, ‘b’, ‘c’, ‘d’, ‘e’)
l1: [‘a’, ‘b’, ‘c’, ‘d’, ‘e’]