Commit 6901f3f2 by BellCodeEditor

auto save

parent ae679614
Showing with 8 additions and 2 deletions
import random
# 玩家出拳 # 玩家出拳
ink=input("请输入:石头/剪刀/布") ink=input("请输入:石头/剪刀/布")
print("玩家输入的是:"+ink) print("玩家输入的是:"+ink)
\ No newline at end of file computer = ["石头","剪刀","布"]
suiji=random.choice(computer)
print("电脑出的是:"+suiji)
if ink == computer:
print("平局")
elif ink =="石头" and 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