假定income=4001,下面代码的显示结果是什么?ifincome3000:print(Incomeisgreaterthan3000)elifincome4000:print(Incomeisg

11 查阅

假定income=4001,下面代码的显示结果是什么?ifincome3000:print(Incomeisgreaterthan3000)elifincome4000:print(Incomeisgreaterthan4000)

A.none

B.Incomeisgreaterthan3000

C.先显示Incomeisgreaterthan3000再显示Incomeisgreaterthan4000

D.Incomeisgreaterthan4000

E.先显示Incomeisgreaterthan4000再显示Incomeisgreaterthan3000

参考答案:

答案:Incomeisgreaterthan3000