Commit 1f21c84a by BellCodeEditor

save project

parent 446261d9
Showing with 2 additions and 17 deletions
import turtle import turtle
int=10
screen=turtle.Screen() screen=turtle.Screen()
screen.bgcolor("yellow") screen.textinput("姓名框","你的名字是")
pen=turtle.Pen()
pen.penup()
pen.goto(-50,60)
pen.write("hi,诺伊~\nPython真好用",font=("Times",15,"normal"))
pen.hideturtle()
pen1=turtle.Pen()
pen1.pencolor("red")
pen1.pensize(5)
pen1.left(45)
pen1.forward(2*int)
pen1.circle(int,180)
pen1.right(90)
pen1.circle(int,180)
pen1.forward(2*int)
pen1.hideturtle()
turtle.done() 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