猫史档案馆


【Python作品分享】成绩检测器【作品秀】

用户:一个STUB用户_7254846一个STUB用户_7254846查看:0 回复:1 评论:0 创建时间:2020-03-10T08:46:33


【作品展示】

center_image

 

【作品介绍】

可以输入成绩评估三号学生~

 

【作品源代码】

Input1 = int(input('请输入你的语文成绩:'))
Input2 = int(input('请输入你的数学成绩:'))
Input3 = int(input('请输入你的英语成绩:'))
Input4 = int(input('请输入你的体育成绩:'))

if (Input1 > 90 and Input2 > 90 and Input3 > 90 and Input4 > 90):
    print('恭喜你成为本学期的三好学生')
elif (Input1 < 60 or Input2 < 60 or Input3 < 60 or Input4 < 60):
    print('别灰心,下次努力')
else:
    print('再接再厉,争取成为三好学生')

 

【提示】

部分含有Python第三方库相关内容的作品,在海龟编辑器网页端无法运行哦!如遇到这种情况,可以打开下面的链接,下载海龟编辑器客户端:

https://python.codemao.cn


回复

上一页1 页 / 共 1下一页
cool-creepercool-creeper

……

Input1 = int(input('请输入你的语文成绩:'))
Input2 = int(input('请输入你的数学成绩:'))
Input3 = int(input('请输入你的英语成绩:'))
Input4 = int(input('请输入你的体育成绩:'))

if (Input1 > 90 and Input2 > 90 and Input3 > 90 and Input4 > 90):
    print('恭喜你成为本学期的三好学生')
elif (Input1 < 60 or Input2 < 60 or Input3 < 60 or Input4 < 60):
    print('别灰心,下次努力')
else:
    print('再接再厉,争取成为三好学生')

点赞0


评论