平常红酒

文章
6
资源
0
加入时间
3年2月3天

python中的not,and, or

not 表示  非,and 表示 与 ,or 表示 或 ,他们的优先级 not > and > or 在python中 都是从左到右去判断条件的,例如and ,True and True 或 True and False 先判断左边的条件是否为真,接下来判断右边的条件是否为真,若右边也为真则完成判断返回右边的结果,若右边条件为假则返回右边的假值的结果;False and T...