Commit 4213e846 by BellCodeEditor

auto save

parent a0cbfb52
Showing with 17 additions and 2 deletions
# 玩家出拳 import random
\ No newline at end of file # 玩家出拳
player=input("请出拳(石头、剪刀、布:)")
print("玩家出得是:"+player)
list = ["石头","剪刀","布"]
computer = random.choice(list)
print("电脑是出:"+computer)
if (石头 and 剪刀) or ( and 石头) or (剪刀 and ):
pass
elif 这里算平局:
再来一次
else:
玩家输了,电脑赢了。
\ 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