10: print…"> -->
当前位置:首页 > 题库

单选题:以下语句能正确输出“明天见!”的是:()

Luz4年前 (2022-10-09)题库1295
以下语句能正确输出“明天见!”的是:()



A.
temp = 1
if temp < 10:
print("太冷了!")
else:
print("明天见!")


B.
temp = 1
if temp > 10:
print("太冷了!")
print("明天见!")

C.
temp = 1
if not(temp > 10):
print("太冷了!")
else:
print("明天见!")

D.
temp = 1
if temp > 10:
print("太冷了!")
print("明天见!")



答案:D