阅读下面代码,选择正确的输出结果___。
grade=90
ifgrade>=60:
print('D')
elifgrade>=70:
print('C')
elifgrade>=80:
print('B')
elifgrade>=90:
print('A')
grade=90
ifgrade>=60:
print('D')
elifgrade>=70:
print('C')
elifgrade>=80:
print('B')
elifgrade>=90:
print('A')
举一反三
- 中国大学MOOC: 阅读下面代码,选择正确的输出结果_______________。grade = 90if grade >= 60: print( D)elif grade >= 70: print( C)elif grade >= 80: print( B)elif grade >= 90: print( A)
- 阅读下面代码,选择正确的输出结果______________... >= 90: print( A)
- 下列输出结果正确的是( )。 A: print(ord('Z'))为90 B: print(chr(90))为Z C: print(ord('A'))为65 D: print(chr(66))为B
- 中国大学MOOC:阅读下面代码,选择正确的输出结果:grade=97ifgrade<60:printEelifgrade>=60:printDelifgrade>=70:printCelifgrade>=80:printBelifgrade>=90:printA
- 下面哪一行代码的输出结果不是Python3.7() A: print(“Python3.7”) B: print(“Python”+3.7) C: print(“Python”+str(3.7)) D: print(“Python”+“3.7”)