立即学习:https://edu.csdn.net/course/play/26676/338779?utm_source=blogtoedu
('a',)为单元素元祖创建方式
如何修改元祖?
t = (1,2,'python',[1,2,3])
lst = list(t)
lst[1] = change
t = tuple(lst)
立即学习:https://edu.csdn.net/course/play/26676/338779?utm_source=blogtoedu
('a',)为单元素元祖创建方式
如何修改元祖?
t = (1,2,'python',[1,2,3])
lst = list(t)
lst[1] = change
t = tuple(lst)