1 Star 0 Fork 0

余超/20189220余超 java

Create your Gitee Account
Explore and code with more than 13.5 million developers,Free private repositories !:)
Sign up
文件
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
my.py 767 Bytes
Copy Edit Raw Blame History
余超 authored 6 years ago . python的代码
import random
times=3
secret=random.randint(10,20)
print('----------------------WELCOM TO PALY THE GAME---------------)
guess=0
print("不妨猜一下我现在心里想的是哪个数字:", end=" ")
while(guess!=secret)and(times>0):
temp=input()
guess=int(temp)
times=times-1
if guess=secret:
print("卧槽,你是我心里的蛔虫吗?!")
print("哼,猜中了也没没有奖励!")
else:
if guess>secret:
print("哥,大了大了````")
else:
print("嘿嘿,小了小了````")
if times>0:
print("再试一次吧:", end=" ")
else:
print("机会用光咯T_T")
print("游戏结束,不玩啦^_^")
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/yuchao20189220/over_20189220java.git
git@gitee.com:yuchao20189220/over_20189220java.git
yuchao20189220
over_20189220java
20189220余超 java
master

Search