#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"))])
原文:https://www.cnblogs.com/smile-donggua/p/8981582.html