python运算符
先计算括号内
执行顺序:
从前到后:
结果
True 遇到or -->返回TRUE
True 遇到and -->继续走
False 遇到or -->继续走
False 遇到and -->False
例如:
user='text'
pwd='123'
user = 'text' and pwd = '123' or 1==1 and pwd = '111'
浙公网安备 33010602011771号