num = [1,2,3,4] num == list(num)
它给出True,其中,
num is list(num)
给出False。
这两者有什么区别?python在这两个语句中做了什么?
python identity list python-3.x
identity ×1
list ×1
python ×1
python-3.x ×1