摘要:
and or not 优先级,()> not > and > or print(3>4 or 4<3 and 1==1) # F print(1 < 2 and 3 < 4 or 1>2) # T print(2 > 1 and 3 < 4 or 4 > 5 and 2 < 1) # T print 阅读全文
摘要:
当while循环被break打断,就不会执行else结果。 count = 0 while count < 5: count += 1 if count == 3 : break print('loop',count) else: print('循环正常执行完成了') print(' out of 阅读全文