Commit 233768a7 by BellCodeEditor

save project

parent 220fe62b
Showing with 14 additions and 0 deletions
# 玩家出拳
import random
ha=input("你想出什么呀?")
print("玩家出拳"+ha)
list=["石头","剪刀","布"]
a=random.choice(list)
print("计算机出拳"+a)
if ha==a:
print("哎呀平局啦!")
elif (ha=="石头" and a=="剪刀") or (ha=="剪刀" and a==" 布") or (ha=="布" and a=="石头"):
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