3Day—查增删
Posted smile-donggua
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了3Day—查增删相关的知识,希望对你有一定的参考价值。
#Author:Han Yadong
#import copy
names =["Zhang" , "Han" ,[1,2,3] ,"Wang"]
print(names [1::2])
#for i in names :
# print(i)
‘‘‘
name2 = copy .deepcopy(names)
names [2] [2] = "韩"
print(names)
print(name2)
‘‘‘
#print(names[-1])
#names.insert(2,"Wu")
#print(names)
#names.append("Wu")
#print(names)
#names [2] ="He"
#print(names)
#names.remove("Zhang")
#print(names)
#print(names .index("Han"))
#print(names [(names .index("Han"))])
以上是关于3Day—查增删的主要内容,如果未能解决你的问题,请参考以下文章