Commit 366725ae by BellCodeEditor

save project

parent d88797c3
Showing with 8 additions and 2 deletions
...@@ -3,4 +3,10 @@ player=input("请出拳:石头/剪刀/布 ")# 玩家出拳 ...@@ -3,4 +3,10 @@ player=input("请出拳:石头/剪刀/布 ")# 玩家出拳
print("玩家出拳:"+player) print("玩家出拳:"+player)
cc=["石头","剪刀","布"] cc=["石头","剪刀","布"]
diannao=random.choice(cc) diannao=random.choice(cc)
print("机器人出拳:"+diannao) print("机器人出拳:"+diannao)
\ No newline at end of file if player==diannao:
print("平局😐")
elif :
print("玩家赢了✌️")
else
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