2020平安健康,turtle.write()方法

#turtle_write.py,练习使用turtle 绘制中文
import turtle

info = input('请输入:')
turtle.penup()
turtle.fd(-300)
turtle.pencolor('red')
for i in info:
    turtle.write(i, font=('Arial',40,'normal'))
    turtle.fd(60)
turtle.done()

你可能感兴趣的:(python)