Commit 27a524bf by BellCodeEditor

auto save

parent 5a4161c3
Showing with 15 additions and 0 deletions
import random
u=input("玩家请出拳/剪刀/石头/布")
print("玩家出拳",u)
b=random.choice(["剪刀","石头","布"])
print("电脑出拳",b)
if u ==b:
print("平局")
elif u=="布"and b=="石头":
print("玩家胜利")
elif u=="剪刀"and b=="布":
print("玩家胜利")
elif u=="石头"and b=="剪刀":
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