下面语句输出结果是print((2 and True) and (True or 3>2 and False) or (True and False))
举一反三
- 写出下列语句的输出结果: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=' ')
- 下面代码的输出结果是a = 2b = 2c = 2.0print(a == b, a is b, a is c) A: True False False B: True False True C: True True False D: False False True
- 下面代码的输出结果是 [br][/br] a= 2 [br][/br] b= 2 [br][/br] c= 2.0 [br][/br] print(a == b, a is b, a is c)(单选题) A: True False False B: True False True C: False False True D: True True 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)
- 下面代码的输出结果是( )。 A: True True False B: False False True C: True False True D: True False False