68 字
约 13 秒
8
code4-6-成绩判断
2026-09-26
无标签
py_score = input('请输入你的python的成绩')
c_score = input('请输入你的c课程成绩')
if py_score.isdigit() and c_score.isdigit():
py_score = int(py_score)
c_score = int(c_score)
if py_score>=60 or c_score>=60:
print('合格')
else:
print('重修')
else:
if not py_score.isdigit():
print('py成绩必须为数字')
if not c_score.isdigit():
print('c的成绩必须为数字')
评论
0 条
还没有评论,先写一条吧。