The is keyword is used to test if two variables refer to the same object.
The test returns True if the two objects are the same object.
The test returns False if they are not the same object, even if the two objects are 100% equal.
Use the == operator to test if two variables are equal.
Python is Keyword
说的很清楚了,is 用来判断两个变量是否指向同一个对象,比较变量值应该用 ==