下列程序输出结果有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 = "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 = 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
- 写出下列语句的输出结果: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=' ')
- print(False or False)输出 True
- if True: print (True)else:print (False)
- print(True or False)输出 True