Commit 46ef4609 by BellCodeEditor

save project

parent a0bfdb1b
Showing with 13 additions and 3 deletions
import turtle
screen = turtle.Screen()
pen=turtle.Pen()
pen1=turtle.Pen()
pen1.pensize(3)
pen1.pencolor("red")
pen.penup()
pen.goto(100,0)
pen.screen("light blue")
pen.write("举头望明月\n低头思故乡",font=(Times,30,"normal")
pen1=turtle.Pen()
pen1.pensize(3)
pen1.pencolor("red")
pen1.left(45)
pen1.forward(100)
pen1.circle(50,180)
......
import turtle
pen = turtle.Pen()
screen=turtle.Screen()
size = screen.textinput("提示","你要多大的魔法阵")
a=int(size)
for i in range(6):
pen.left(60)
pen.forward(a)
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