Commit f191bf98 by BellCodeEditor

save project

parent 2c365a51
Showing with 10 additions and 2 deletions
...@@ -19,4 +19,12 @@ pen.circle(len,180) ...@@ -19,4 +19,12 @@ pen.circle(len,180)
pen.right(90) pen.right(90)
pen.circle(len,180) pen.circle(len,180)
pen.forward(2*len) pen.forward(2*len)
turtle.done() turtle.done()
\ No newline at end of file import turtle
screen=turtle.Screen()
screen.bgcolor("light blue")
len=screen.textinput("100","100")
len=int(len)
pen=turtle.Pen()
pen.write("Hi,蔡徐坤\n用pytthon写电子贺卡真是太有趣啦\n我也喜欢python.",font=("Times",30,"normal"))
pen.hideturtle()
\ 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