Life is beautiful, Just keep going...
a=[1,2,3,4,5] b=a print(a is b) b[0]='X' print(a is b) print(a,b) output>> True True ['X', 2, 3, 4, 5] ['X', 2, 3, 4, 5]
沒有留言:
張貼留言