标签:src inf list print abc tom 分享 add 技术
classmates =[‘Michael‘,‘Bob‘,‘Tracy‘,‘李三‘,‘Tracy‘,56] new = [‘Rose‘,‘Jack‘] classmates.insert(2,‘Tom‘) classmates.append(‘Jack‘) classmates.extend(new) print(classmates) classmatesSet = set(classmates) classmatesSet.add(‘Jack‘) print(classmatesSet) print(list(‘ababcd‘),tuple(‘ababcd‘))
结果
标签:src inf list print abc tom 分享 add 技术
原文地址:https://www.cnblogs.com/844115-l/p/9679918.html