Commit f2c0f448 by BellCodeEditor

save project

parent c886a62c
Showing with 11 additions and 8 deletions
import turtle import turtle
len=60
p=turtle.Pen() p=turtle.Pen()
p.color("red") p.color("red")
p.pensize(20) p.pensize(20)
p.left(45) p.left(45)
p.forward(90) p.forward(len*2)
p.circle(45,180) p.circle(len,180)
p.right(90) p.right(90)
p.circle(45,180) p.circle(len,180)
p.forward(90) p.forward(len*2)
turtle.done() turtle.done()
\ No newline at end of file
import turtle import turtle
len=int(input("直径"))
p=turtle.Pen() p=turtle.Pen()
p.color("red") p.color("red")
screen=turtle.Screen() screen=turtle.Screen()
screen.bgcolor("yellow") screen.bgcolor("yellow")
len=int(screen.textinput("大小","nifuck输入bj"))
p.hideturtle() p.hideturtle()
p.pensize(5) p.pensize(1)
p.left(45) p.left(45)
p.forward(2*len) p.forward(2*len)
p.circle(len,180) p.circle(len,180)
...@@ -16,5 +16,5 @@ p.forward(2*len) ...@@ -16,5 +16,5 @@ p.forward(2*len)
p.left(90) p.left(90)
p.penup() p.penup()
p.goto(-100,0) p.goto(-100,0)
p.write("傻逼\fuck",font=("Times",10,"normal")) p.write("傻逼|fuck",font=("Times",20,"normal"))
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