Commit a31eeada by BellCodeEditor

save project

parent 220fe62b
Showing with 14 additions and 0 deletions
# 玩家出拳
play=input("请出拳")
print("玩家"+play)
import random
hand=["石头","剪刀","布"]
litter=random.choice(hand)
print(litter)
if play==litter:
print("平")
elif play=="石头" and litter=="剪刀" or play=="剪刀" and litter=="布" or play=="布" and litter=="石头":
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