运行 ❯
获取您的
自己的 Python
服务器
×
更改方向
更改主题,黑色/白色
进入 Spaces
x = ["apple", "banana"] y = ["apple", "banana"] z = x print(x is not z) # returns False because z is the same object as x print(x is not y) # returns True because x is not the same object as y, even if they have the same content print(x != y) # to demonstrate the difference betweeen "is not" and "!=": this comparison returns False because x is equal to y
错误
正确
错误