[問題] not的用法
not 1 == False
#True
False == not 1
#SyntaxError: invalid syntax
根據下面的文件
http://docs.python.org/reference/expressions.html
precedence: not 高於 ==
為什麼第二種寫法會出錯呢?
謝謝:)
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 36.232.211.192
→
09/08 23:45, , 1F
09/08 23:45, 1F
→
09/08 23:57, , 2F
09/08 23:57, 2F