摘要:
1.拷贝一个列表必须使用切片操作符拷贝看下面的结果,与预想之差异 print ('Simple Assignment')shoplist = ['apple','mango','carrot','banana']mylist = shoplist del shoplist[0] print (' s 阅读全文
摘要:
1.元组的概念和用法 zoo = ('wolf','elephant','penguin')print ('Number of animals in the zoo is',len(zoo)) new_zoo = ('monkey','dolphin',zoo)print ('Number of a 阅读全文