Commit 86f5ac07 by BellCodeEditor

auto save

parent f2d15683
Showing with 6 additions and 5 deletions
# 玩家出拳
import random
player=input("玩家请出拳(石头/剪刀/布):")
print("玩家出拳:"+player)
list["石头","剪刀","布"]
# 玩家出拳代码:
player=input("玩家请出武器:")
print("玩家出武器:"+player)
# 计算机出拳代码:
list=["手枪","狙击枪","平底锅","突击步枪","霰弹枪","射手步枪","手雷"]
computer=random.choice(list)
print("计算机出"+computer)
print("计算机出武器:"+computer)
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