Use ==/!= to compare str, bytes, and int literals
Identity is not the same thing as equality in Python. $ python ``` >>> self_dtype = "float" >>> self_dtype += "16" >>> self_dtype == "float16" True >>> self_dtype is "float16" False ```
Showing
想要评论请 注册 或 登录