Commit ffb3ef9e by BellCodeEditor

save project

parent 31de674a
Showing with 8 additions and 2 deletions
player=input("石头/剪刀/布")
print(" 玩家出的是"player)
print(" 玩家出的是"+player)
import random
q=["石头","剪刀","布"]
a=random.choice(q)
print(a)
if player==a:
print("平局")
elif (player=="石头"and a=="剪刀")or (player=="剪刀"and a=="布")or (player=="布"and a=="石头"):
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