python萍乡游子吟之诗

"""
萍乡游子吟之诗,
学习Python的朋友请把本程序中的诗放在一个列表中,然后用for循环重新改写这个程序.
"""

import turtle
 
myfont = ("黑体",32,"normal")
myfont2 = ("黑体",22,"normal")

screen = turtle.getscreen()
screen.bgcolor("black")
screen.setup(600,600)
screen.title("萍乡游子吟之诗_Python海龟写诗")

turtle.ht()
turtle.penup()
turtle.color("cyan")
turtle.setheading(90)
turtle.goto(-20,150)

turtle.write(" 萍乡游子吟",font=myfont,align='center')
turtle.bk(100)
turtle.write("父母俱在不远游",font=myfont,align='center')
turtle.bk(60)
turtle.write("呼啸一日归昭萍",font=myfont,align='center')
turtle.bk(60)
turtle.write("猛虎归山震啸天",font=myfont,align='center')
turtle.bk(60)
turtle.write("铁身丹心泪满流",font=myfont,align='center')
turtle.bk(60)
turtle.write("2019年5月11日于萍乡",font=myfont2,align='center')

screen.exitonclick()



Python萍乡游子吟之诗