rint (1 and 5 or 0) #先计算1 and 5 为5再计算5 or 0 为5
print (1 or 5 and 0 or 6 and 0)
"""
先计算5 and 0为0,6 and 0为0
整个语句就变为1 or 0 or 0结果为1
"""
标签:语句,逻辑,rint,运算符,计算,print From: https://www.cnblogs.com/sunbines/p/17544657.html
rint (1 and 5 or 0) #先计算1 and 5 为5再计算5 or 0 为5
print (1 or 5 and 0 or 6 and 0)
"""
先计算5 and 0为0,6 and 0为0
整个语句就变为1 or 0 or 0结果为1
"""
标签:语句,逻辑,rint,运算符,计算,print From: https://www.cnblogs.com/sunbines/p/17544657.html