今天没写代码,就看了会 python 的视频
分享下视频上看到的题目

info = [1,2,3]
userinfo = {"account":info,"num":info,"money":info}
info.append(9)
print(userinfo)
info = 'aaaaa'
print(userinfo)
info = [1,2,3]
 userinfo =[info,info,info,info]
 userinfo[2][0]="aaa"
 print(info,userinfo)
import copy
 v1 = [1,2,3,{'name':'元宝','number':[7,77,88]}]
 v2 = copy.deepcopy(v1)
 print(v1 is v2)
 print(v1[0] is v2[0])
 print(v1[3] is v2[3])
 print(v1[3]['name'] is v2[3]['name'])
 print(v1[3]['number'] is v2[3]['number'])
 print(v1[3]['number'][1] is v2[3]['number'][1])


↙↙↙阅读原文可查看相关链接,并与作者交流