Python:运算优先级
摘要:
# 算数运算符优先级(+-*/等)> 比较运算符(>,<,=)优先级 > 逻辑运算符(not,and,or) # 逻辑运算符中,not > and > or # 不确定,可以加() if not 1 and 1 + 3 > 2 or 3 == 8: print(True) else: print(F 阅读全文
posted @ 2021-09-28 17:34 小尹学python 阅读(195) 评论(0) 推荐(0)