Commit 19093737 by BellCodeEditor

save project

parent 4891308f
Showing with 5 additions and 5 deletions
# 玩家出拳 # 玩家出拳
name=input("你出什么") name=input("你出什么")
print("玩家出"+name) print("玩家出"+name)
import random import random #导入radom模块
list=["石头","剪刀","布"] list=["石头","剪刀","布"] #创建列表
x=random.choice(list) x=random.choice(list) #从列表中随机选择出拳
print("计算机出"+x) print("计算机出"+x) #输出选择
\ No newline at end of file \ 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