DD論壇's Archiver
論壇
›
Python
› not and or
redd
發表於 2016-9-19 16:44:07
not and or
Boolean operators aren't just evaluated from left to right.
[*]not is evaluated first;
[*]and is evaluated next;
[*]or is evaluated last.
For example, True or not False and False returns True.
頁:
[1]
查看完整版本:
not and or