\qquad 从 p y t h o n 3.8 python\ 3.8 python 3.8 开始,当使用 i s is is 和 i s n o t is\ not is not 运算符时,会抛出 SyntaxWarning: "is" with a literal. Did you mean "=="?
或 SyntaxWarning: "is not" with a literal. Did you mean "!="?
语句警告信息,建议分别使用 = = == == 和 ! = != != 代替 i s is is 和 i s n o t is\ not is not 。
python 显示 “SyntaxWarning: “is“ with a literal. Did you mean “==“?” 警告
Guess you like
Origin blog.csdn.net/m0_52650517/article/details/119743404
Recommended
Ranking