Commit 89ebf943 by BellCodeEditor

save project

parent 6544c9ce
Showing with 5 additions and 4 deletions
......@@ -4,14 +4,14 @@ __Pen = turtle.Pen()
# 利用write()帮助悟空给诺依回信吧~
screen = turtle.Screen()
turtle.bgcolor('light blue')
w = turtle.textinput('你好诺伊', '请输入100')
w = 1
w = int(w)
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()
#画桃心
w = 60
pen.penup()
pen.goto(100, 100)
......@@ -24,4 +24,4 @@ pen.circle(w, 180)
pen.right(90)
pen.circle(w, 180)
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