Commit 982399b7 by BellCodeEditor

save project

parent 2e9a1320
Showing with 17 additions and 5 deletions
import random
list["石头""剪刀""布"]
A=random.choice(list)
print("计算机出拳"+A)
......@@ -3,11 +3,17 @@ ee=input("请出拳:")
print("玩家出拳:"+ee)
list=["石头","剪刀","布"]
e=random.choice(list)
print("计算机出拳:"+e)
print("计算机出拳:"+e)
if (ee in list):
if (ee==e):
print("平")
elif (ee=="石头" and e=="剪刀" or ee=="剪刀" and e=="布" or ee=="布" and e=="石头"):
print("赢了")
else:
print("输了")
else:
print("输入有误")
......
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