Commit c7fa5081 by BellCodeEditor

auto save

parent a0cbfb52
Showing with 12 additions and 2 deletions
# 玩家出拳 # 玩家出拳
\ No newline at end of file # 1。引入模块
import random
# 2.创建列表
list = ["石头","剪刀","布"]
# 3.随机
rad = random.choice(list)
player = input("请出拳(石头/剪刀/布)")
print("玩家出拳是: "+player)
print("计算机出拳是:"+rad)
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