Commit d890bb12 by BellCodeEditor

auto save

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