-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
snow feng
committed
Dec 31, 2023
1 parent
54c028b
commit 32fed29
Showing
1 changed file
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# coding=utf-8 | ||
# Filename: ch5_1_2_plus.py | ||
|
||
score = int(input("请输入一个0~100的整数:")) | ||
|
||
if score > 100: | ||
print("输入不正确,哪有这么多分啊!") | ||
elif score == 100: | ||
print("哇哦,满分哦!你真棒!") | ||
elif score >= 85: | ||
print("成绩不错!") | ||
elif score >= 60: | ||
print("加把劲!") | ||
elif score >= 0: | ||
print("不及格啦,这可不行!") | ||
else: | ||
print ("输入错误,没有负分!") |