其他分享
首页 > 其他分享> > 开班前自学--元组

开班前自学--元组

作者:互联网

元组 tuple

tu = ('front','ove',['library','cloudpark','CC+'],'2019.03.01','09:06')
tu[2].append('shenzhen')
print(tu)   # ('front', 'ove', ['library', 'cloudpark', 'CC+', 'shenzhen'], '2019.03.01', '09:06')

 

tu = ('front','ove',['library','cloudpark','CC+'],'2019.03.01','09:06')
tu[2].pop(2)         # 删除'CC+'
print(tu)            # ('front', 'ove', ['library', 'cloudpark'], '2019.03.01', '09:06')

 

标签:01,2019.03,tu,library,开班,09,print,自学,元组
来源: https://www.cnblogs.com/yingpeng/p/10455743.html