(true + false)== 2 - true
举一反三
- 写出下列语句的输出结果:print(1 or 2, 0 or 2, False or True,True or False,False or 2,sep=' ')print(1 and 2, 0 and 2, False and 2,True and 2,False and True,sep=' ')
- (true + false)== 2 - true
- 下面语句输出结果是print((2 and True) and (True or 3>2 and False) or (True and False))
- 下列程序输出结果有true的是 A: true = "true"false = "false"if false: print(false)elif true: print(true) B: true = "true"false = "false"if true: print(true)elif false: print(false) C: true = "true"false = "false"if False: print(false)elif True: print(true) D: true = "true"false = "false"if True: print(true)elif False: print(false)
- 【单选题】逻辑运算True and True,True and False,False and True,False and False正确的是? A. (True, False, False, False) B. (True, False, True, False) C. (False, False, True, False) D. (False,True, False, False)