Commit b4b7970c by BellCodeEditor

auto save

parent c99573c2
Showing with 6 additions and 6 deletions
import turtle import turtle#导入模块
player=input("请出拳:石头/剪刀/布:")# 玩家出拳 player=input("请出拳:石头/剪刀/布:")# 玩家出拳
print("玩家出拳:"+player) print("玩家出拳:"+player)#控制台打印玩家结果
list=["石头","剪刀","布"] list=["石头","剪刀","布"]#创造列表
diannao=random.choice(list)#获取列表里的随机值
diannao=random.choice(list) print("电脑出拳:"+diannao)#控制台打印电脑结果
print("电脑出拳:"+diannao) \ No newline at end of file
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