python道德经摘要

版权声明:所有文章皆为李兴球先生原创,转载请注明出处,否则保留权利,追究责任。 https://blog.csdn.net/avskya/article/details/81393242

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 = """信言不美。美言不信。

扫描二维码关注公众号,回复: 3501674 查看本文章

善者不辩。辩者不善。

知者不博。博者不知。
"""
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'))

猜你喜欢

转载自blog.csdn.net/avskya/article/details/81393242
今日推荐