Commit 6a72ef63 by BellCodeEditor

save project

parent 9844abec
Showing with 15 additions and 8 deletions
# 玩家出拳 import turtle
player = input("请出拳(石头/剪刀/布):") pen=turtle.Pen()
print("玩家出拳:"+player) pen.goto(100,-100)
# 计算机随机出拳 pen.write("妈妈,\n三月八日妇女节快乐!",font=("Times",30,"normal"))
import random pen.hideturtle()
list = ["石头","剪刀", "布"]
computer = random.choice(list)
print("计算机出拳:"+computer)
pen1=turtle.Pen()
pen1.pensize(10)
pen1.pencolor("red")
pen1.left(45)
pen1.forward(100)
pen1.circle(50,180)
pen1.right(90)
pen1.circle(50,180)
pen1.forward(100)
turtle.done()
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