Commit d88668fc by BellCodeEditor

save project

parent 1ba2eb19
Showing with 16 additions and 2 deletions
player=inport("请玩家出拳") c=input("请玩家出拳")
print("玩家出"+player) print("玩家出"+c)
import random import random
a=["石头","剪刀","布"] a=["石头","剪刀","布"]
b=random.choice(a) b=random.choice(a)
print(a) print(a)
if c==b:
print("平")
elif c="石头" and b="布"
print("输")
elif c="剪刀" and b="石头"
print("输")
elif c="布" and b="剪刀"
print("输")
elif c="石头" and b="剪刀"
print("赢")
elif c="剪刀" and b="布"
print("赢")
elif c="布" and b="石头"
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