Commit 6935f8ee by BellCodeEditor

save project

parent 220fe62b
Showing with 48 additions and 0 deletions
import random #载入[随机数]模块
print("正在载入中")
print("如果是第一次登陆需加载信息较多,请耐心等待。")
print("载入中......")
print("1%")
print("25%")
print("87%")
for i in range(5):
print("99%")
print("100%")
print("加载成功!欢迎进入游戏!")
# 玩家出拳
a=input("请出拳:")
print("玩家出拳:"+a)
print("*******************") #我是分割线
# 电脑出拳
b=["石头","剪刀","布"]
computer=random.choice(b)
print("电脑出拳:"+computer)
import random
# 玩家出拳
a=input("请出拳:")
print("玩家出拳:"+a)
b=["石头","剪刀","布"]
c=random.choice(b)
print("电脑出拳:"+c)
if a in b:
if a==c:
print("平局")
elif (a=="石头" and c=="剪刀") or (a=="剪刀" and c=="布") or (a=="布" and c=="石头"):
print("you win!")
else:
print("you lose!")
else:
print("Input error")
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment