标签:增删查改 user int for 查询 utf-8 只读 元祖 odi
#!/user/bin/python
# -*- coding:utf-8 -*-
tu = (‘zs‘,‘ls‘,‘ww‘,[1,2,3,4,5,‘zxcvb‘],‘zl‘)
print(tu[3])
print(tu[0:4])
for i in tu:
print(i)
tu[3][5] = tu[3][5].upper()
print(tu)
tu[3].append(‘fdsfds‘)
print(tu)
2017-12-19python全栈9期第四天第二节之列表的增删查改之元祖是只读列表、可循环查询、可切片、儿子不能改、孙子可以改
标签:增删查改 user int for 查询 utf-8 只读 元祖 odi
原文地址:https://www.cnblogs.com/zhang-da/p/10203243.html