Commit d890bb12 by BellCodeEditor

auto save

parent 52346b50
Showing with 14 additions and 9 deletions
import random import random
while True:
player=input("请出拳:石头/剪刀/布")# 玩家出拳
print("玩家出拳:"+player)
player=input("请出拳:石头/剪刀/布")# 玩家出拳 list=["石头","剪刀","布"]
print("玩家出拳:"+player) Robort=random.choice(list)
print("计算机出拳:"+Robort)
list=["石头","剪刀","布"] if player == Robort:
Robort=random.choice(list) print("平局")
print("计算机出拳:"+Robort) if player=="石头" and Robort=="剪刀":
if player == Robort: print("玩家赢")
print(“平局”) if player=="剪刀"or Robort=="布"
\ No newline at end of file iprint("玩家赢")
if player==""or Robort=="布"
iprint("玩家赢")
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