from turtle import *
from time import sleep
title = "《道德经》摘要"
screen = Screen()
screen.delay(0)
screen.setup(550,360)
screen.bgcolor("blue")
screen.title(title)
t = Turtle(visible = False)
t.penup()
t.speed(0)
t.color("white","white")
t.sety(-180)
for i in range(30):
sleep(0.05)
t.clear()
t.sety(t.ycor() + 10)
t.write(title,align='center',font=("黑体",30,'normal'))
t.goto(-230,-100)
s1 = """
道可道,非常道;名可名,非常名。
无名,万物之始,有名,万物之母。
故常无欲,以观其妙,常有欲,以观其徼。
此两者,同出而异名,同谓之玄,玄之又玄,众妙之门。"""
s2 = """
善为士者不武。善战者不怒。
善胜敌者不与。善用人者为之下。
是谓不争之德,是谓用人之力,是谓配天之极。
"""
s3 = "大方无隅,大器晚成。大音希声,大象无形。"
s4 = "人法地,地法天,天法道,道法自然。"
s5 = """信言不美。美言不信。
善者不辩。辩者不善。
知者不博。博者不知。
"""
s6 = """
合抱之木,生于毫末;
九层之台,起于蔂土;
千里之行,始于足下。
"""
s7 = """
知人者智,自知者明。胜人者有力,自胜者强。
知足者富,强行者有志。不失其所者久,死而不亡者寿。
"""
s = [s1,s2,s3,s4,s5,s6,s7]
for 道 in s:
t.write(道,font=("黑体",14,'normal'))
sleep(5)
t.clear()
t.goto(0,0)
t.write("end 作者:李兴球 ",font=("黑体",24,'normal'))