题目要求是创建一个list然后这个只包含自己的list
def itself():
a = []
a[:]= [a] <-------这里为什么a=[a]就不行
return a
b= itself()
assert b is b[0]
题目要求是创建一个list然后这个只包含自己的list
def itself():
a = []
a[:]= [a] <-------这里为什么a=[a]就不行
return a
b= itself()
assert b is b[0]