- 编写一个python程序,输入两个数,比较它们的大小并输出其中较大者;
- 成绩等级查询
-
a =input("请输入第一个数:") b=input("请输入第二个数:") if a>b: print(a) else: print(b) score=int(input("请输入成绩:")) if score>=90: print("A级") elif score >=70 and score <89: print("B级") elif score >=60 and score <70: print("C级") else: print("D级")