Skip to content

Commit f608f7e

Browse files
committed
hp提交测试
1 parent 157cdca commit f608f7e

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

.idea/MyFirPython.iml

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

com/lxl/base/learn/Guess_game.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@ def play():
55
random_int=randint(1,100)
66

77
while True:
8-
user_guess=int(input("please input one number between 1 to 100:"))
8+
user_guess=int(input("输入数字 between 1 to 100:"))
99

1010
if user_guess==random_int:
11-
print("you win")
11+
print("你赢了")
1212
break
1313
if user_guess<random_int:
14-
print("less")
14+
print("太小了")
1515
continue
1616
if user_guess>random_int:
17-
print("more")
17+
print("太大了")
1818
continue
1919

2020

0 commit comments

Comments
 (0)