Commit 15d2a633 by BellCodeEditor

auto save

parent c2f1308f
Showing with 18 additions and 2 deletions
import turtle as t
for i in range(1,10):
t.circle(100,360,i)
t.home()
t.rt(90)
t.pu()
t.fd(80)#为了不与图像重合,将小乌龟向下移动后写字
t.write("酷",False,'center',font=('华文中宋',25,'normal'))
t.fd(50)#为了小乌龟不挡住字,将小乌龟再次向下移动
t.done()
\ No newline at end of file
# 利用write()帮助悟空给诺依回信吧~
\ No newline at end of file
# 利用write()帮助悟空给诺依回信吧~
import turtle
pen=turtle.Pen()
pen.write("Hi,诺依~\n用python写电子贺卡真是太有趣啦~\n我也喜欢python~\n——悟空 ",font=("Times",18,"normal"))
pen.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