Commit b05e0d39 by BellCodeEditor

save project

parent debd8510
Showing with 5 additions and 4 deletions
# 利用write()帮助悟空给诺依回信吧~ # 利用write()帮助悟空给诺依回信吧~
import turtle import turtle
pen=turtle.Pen() pen=turtle.Pen()
a=input("多大?")
pen.pensize(5) pen.pensize(5)
pen.speed(1000) pen.speed(1000)
pen.color("yellow") pen.color("yellow")
pen.fillcolor("green") pen.fillcolor("green")
pen.begin_fill() pen.begin_fill()
pen.left(45) pen.left(45)
pen.forward(100) pen.forward(float(a))
pen.circle(50,180) pen.circle(float(a)/2,180)
pen.right(90) pen.right(90)
pen.circle(50,180) pen.circle(float(a)/2,180)
pen.forward(100) pen.forward(float(a))
pen.end_fill() pen.end_fill()
pen.up() pen.up()
......
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