Commit 07d270ca by BellCodeEditor

save project

parent a50ceeec
Showing with 21 additions and 0 deletions
# 利用write()帮助悟空给诺依回信吧~
import turtle
pen = turtle.Pen()
screen=turtle.Screen()
screen.bgcolor("blue")
pen.penup()
pen.goto(100,0)
pen.write("aaaaa",font=("Times",30,"normal"))
m416=screen.textinput("提示","1+1=?")
ak=int(m416)
pen1 = turtle.Pen()
pen1.color('red')
pen1.left(45)
pen1.forward(ak*2)
pen1.circle(ak,180)
pen1.right(90)
pen1.circle(ak,180)
pen1.forward(ak*2)
pen1.fillcolor('red')
turtle.hideturtle()
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