gpt4 book ai didi

python - 为什么 ['hello' ] 是 ['hello' ] 在 Python 中返回 False?

转载 作者:太空宇宙 更新时间:2023-11-03 12:14:32 24 4
gpt4 key购买 nike

<分区>

Possible Duplicate:
Python: Why is (“hello” is “hello”)?

['hello'] is ['hello']    # gives False

为什么?他们的id不一样。为什么元组或数字最终没有返回 False?

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com