Commit 38c2da54 by BellCodeEditor

save project

parent bb8f4278
Showing with 5 additions and 5 deletions
player=input("请出拳:石头/剪刀/布")# 玩家出拳 player=input("请出拳:石头/剪刀/布")# 玩家出拳
print("玩家出拳:"+player) print("玩家出拳:"+player)
import random import random #导入
last=["石头","剪刀","布"] last=("石头","剪刀","布") #建列表
computer=random.choice(last) computer=random.choice(last) #随机
print(computer) print("电脑出拳:"+computer) #打印
\ 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