Commit eeaf2601 by BellCodeEditor

save project

parent d424edcf
Showing with 22 additions and 2 deletions
# 利用write()帮助悟空给诺依回信吧~ import turtle
\ No newline at end of file a=turtle.Screen()
a.bgcolor("green")
b=a.textinput("你的姓名","你想要多大的")
b=int(b)
t=turtle.Pen()
t.write("你\n好",font=("Times",13,"normal"))
w=turtle.Pen()
w.right(45)
w.forward(2*b)
w.circle(b,180)
w.left(90)
w.circle(b,180)
w.forward(2*b)
w.pensize(10)
w.pencolor(red)
t.hideturtle()
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