Commit 4d808b83 by BellCodeEditor

auto save

parent 5598dc91
Showing with 0 additions and 13 deletions
player=input("玩家出拳(剪刀/石头/布):")
print("玩家出拳:"+player)
import random
a=["剪刀","石头","布"]
b=random.chioce(a)
print(b)
if b == a:
print("平局")
elif b=="剪刀" and a=="布" or b=="石头" and a=="剪刀" or b=="布" 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