Commit 84c172b9 by BellCodeEditor

save project

parent 25abb509
Showing with 20 additions and 1 deletions
player=input("请出拳:石头/剪刀/布")# 玩家出拳
player=input("请出拳:石头/剪刀/布")# 玩家出拳
print("玩家出拳:"+player)
# 使用模块的第一步是--导入模块(import)
# random 随机模块
import random
# list列表,存储多个数据
list = ["石头","剪刀","布"]
# 随机选出一个手势,choice---选择
dian_nao_shou_shi = random.choice(list)
print(dian_nao_shou_shi)
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