Commit 628705da by BellCodeEditor

auto save

parent 25abb509
Showing with 14 additions and 1 deletions
player=input("请出拳:石头/剪刀/布")# 玩家出拳 import random
player=input("请出拳:(石头/剪刀/布)")# 玩家出拳
print("玩家出拳:"+player) print("玩家出拳:"+player)
list=["石头","剪刀","布"]
roboot=random.choice(list)
print("计算机出拳:"+roboot)
if roboot==player:
print("平局")
elif (roboot=="布" and player=="剪刀") or (roboot=="剪刀" and player=="石头") or (roboot=="石头" and player=="布"):
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