Commit 62008b3b by BellCodeEditor

save project

parent 14576669
Showing with 17 additions and 16 deletions
player=input("请出拳:石头/剪刀/布") import turtle
print("玩家出拳:"+player) # pen=turtle.Pen()
import random # pen.write("Hi,诺依~\n鸡你太美。",font=("Times",18,"normal"))
list=["石头","剪刀","布"] # pen.hideturtle()
computer=random.choice(list) # turtle.done()
print(computer) pen1=turtle.Pen()
import random pen1.pencolor("red")
list=["石头","剪刀","布"] pen1.pensize(5)
print("计算机出拳:"+computer) pen1.left(45)
if player == computer: pen1.forward(100)
print("平局") pen1.circle(50,180)
elif (player=="石头" and computer=="剪刀")or(player=="剪刀" and computer=="布")or(player=="布" and computer=="石头"): pen1.right(90)
print("恭喜,你赢了") pen1.circle(50,180)
else: pen1.forward(100)
print("很遗憾,你输了") pen1.hideturtle()
\ No newline at end of file turtle.done()
\ 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