重拾python 二十八

来源:互联网 发布:用友网络 东方财富 编辑:程序博客网 时间:2024/05/02 00:12

判断以下表达式的值:

True or True and FalseFalse or True and False1 == 1 and 2 == 1"tst" == "test""test " == " test"1 == 1 or 2 != 1True and 1 == 1False and 0 != 0True or 1 == 1"test" == "testing"1 != 0 and 2 == 1"test" != "testing""test" == 1not (True and False)not (1 == 1 and 0 != 1)not (10 == 1 or 1000 == 1000)not (1 != 10 or 3 == 4)not ("testing" == "testing" and "Zed" == "Cool Guy")1 == 1 and (not ("testing" == 1 or 1 == 0))"chunky" == "bacon" and (not (3 == 4 or 3 == 3))3 == 3 and (not ("testing" == "testing" or "Python" == "Fun"))
0 0
原创粉丝点击