Commit 2d0b87d5 by BellCodeEditor

save project

parent cddf6bc1
Showing with 3 additions and 4 deletions
...@@ -2,14 +2,13 @@ ...@@ -2,14 +2,13 @@
import turtle import turtle
screen=turtle.Screen() screen=turtle.Screen()
screen.bgcolor("light blue") screen.bgcolor("light blue")
len=huabu.textinput("大小","爱心的大小是多少") len=screen.textinput("大小","爱心的大小是多少")
len=int(len)
len=screen.textinput("100","100")
len=int(len) len=int(len)
pen=turtle.Pen() pen=turtle.Pen()
pen.write("你好诺依,\n用python写电子贺卡真是太有趣了~\n我也喜欢python\n——倪沐扬",font=("Times",20,"normal")) pen.write("你好诺依,\n用python写电子贺卡真是太有趣了~\n我也喜欢python\n——倪沐扬",font=("Times",20,"normal"))
pen.hideturtle() pen.hideturtle()
len=60
pen.penup() pen.penup()
pen.goto(100,100) pen.goto(100,100)
pen.pendown() pen.pendown()
......
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