[問題] not的用法

看板Python作者 (lyle)時間11年前 (2012/09/08 22:56), 編輯推噓0(002)
留言2則, 2人參與, 最新討論串1/1
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
from lowest to highest...
09/08 23:45, 1F

09/08 23:57, , 2F
抱歉...我眼殘了
09/08 23:57, 2F
文章代碼(AID): #1GIroZH5 (Python)