Commit 6382e1b1 by BellCodeEditor

save project

parent 214bbd8e
Showing with 4 additions and 3 deletions
player=input("请出拳:石头/剪刀/布")# 玩家出拳 player=input("请出拳:石头/剪刀/布")# 玩家出拳
print("玩家出拳:"+player) print("玩家出拳:"+player)
import random import random #导入随机模块
lalst=("石头","剪刀","布") lalst=("石头","剪刀","布")#创建变量
computer=random.choice(last) computer=random.choice(last)#调用变量
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