Commit 89ebf943 by BellCodeEditor

save project

parent 6544c9ce
Showing with 5 additions and 4 deletions
...@@ -4,14 +4,14 @@ __Pen = turtle.Pen() ...@@ -4,14 +4,14 @@ __Pen = turtle.Pen()
# 利用write()帮助悟空给诺依回信吧~ # 利用write()帮助悟空给诺依回信吧~
screen = turtle.Screen() screen = turtle.Screen()
turtle.bgcolor('light blue') turtle.bgcolor('light blue')
w = turtle.textinput('你好诺伊', '请输入100') w = 1
w = int(w) w = int(w)
pen = turtle.Pen() pen = turtle.Pen()
pen.write('你好诺伊\n我用python写了电子贺卡给你,\n电子贺卡真是太有趣了!\n落款——ĀĂáÂæÆbɐÃ.', font = ('Times', 19, 'normal')) pen.write('你好诺伊\n我用python写了电子贺卡给你,\n电子贺卡真是太有趣了!\n落款——悟空.', font = ('Times', 19, 'normal'))
pen.hideturtle() pen.hideturtle()
#画桃心
w = 60 w = 60
pen.penup() pen.penup()
pen.goto(100, 100) pen.goto(100, 100)
...@@ -24,4 +24,4 @@ pen.circle(w, 180) ...@@ -24,4 +24,4 @@ pen.circle(w, 180)
pen.right(90) pen.right(90)
pen.circle(w, 180) pen.circle(w, 180)
pen.forward((2 * w)) pen.forward((2 * w))
turtle.done() 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