Commit a28d0099 by BellCodeEditor

auto save

parent cfb95be4
Showing with 9 additions and 0 deletions
import random #导入random模块
player = input("请输入(石头/剪刀/布):")
print("玩家出:" + player)
list1 = ["石头","剪刀","布"]
computer = random.choice(list1) #从list1中随机取一个元素
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