在线名词解释大全 - Python程序设计 - 详细

12 Supposex=1,y=-1,andz=1.Whatwillbedisplayedbythefollowingstatement?()if x > 0:if y>0:print("x> 0 andy>0")elif z > 0:print("x< 0 andz>0")

A
x > 0 and y > 0
B
x < 0 and z > 0
C
x < 0 and z < 0
D
nothing displayed
正确答案:
相关推荐
扫描二维码
关注公众平台