Commit b3b8f2a3 by BellCodeEditor

save project

parent 90ab6985
Showing with 6 additions and 17 deletions
# 玩家出拳 import turtle
import random pen=turtle.Pen()
player =input("请出拳(石头/剪刀/布)") pen.write("hi,nuoyi",font=("Times",18,"normal"))
print("玩家出拳L:"+player) pen.hideturtle()
import random turtle.done()
list=["石头","剪刀","布"] \ No newline at end of file
computer=random.choice(list)
print("计算机出拳:"+computer)
if player == computer:
print("平局")
elif (player=="石头" and computer=="剪刀")
print("恭喜,你赢了")
elif:
print("很遗憾,你死了")
elif:
print("输入储物")
\ 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