Commit 6096c8f8 by BellCodeEditor

auto save

parent 6ff563f7
Showing with 9 additions and 6 deletions
import random import random
# 玩家出拳 # 玩家出拳
name=input("chq") player=input("chq")
print(name+"玩家") print(player+"玩家")
list=["石头","剪刀","布"] list=["石头","剪刀","布"]
c=random.choice(list) c=random.choice(list)
print(c) print(c)
if player==c if player==c
elif : print("平"):
elif(player=="石头"and c=="剪刀" or player=="布"and c=="石头" or player=="剪刀"and c=="布"):
\ No newline at end of file print("赢")
else:
print("shu")
\ 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