Commit 2b2ff599 by BellCodeEditor

save project

parent c3dfd2fe
Showing with 9 additions and 4 deletions
player=input("请出拳:石头/剪刀/布")# 玩家出拳 p=input("请出拳:石头/剪刀/布")# 玩家出拳
print("玩家出拳:"+player) print("玩家出拳:"+p)
import randon import randon
a=["石头","剪刀","布"] a=["石头","剪刀","布"]
d=randon.choice d=randon.choice
print(d) print(d)
\ No newline at end of file if p==c:
print("平局")
elif(p=="石头" and c=="剪刀") or (p=="剪刀" and c=="剪刀") or (p=="石头" and c=="布")
print("赢了")
print("输了")
\ 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