python送给父亲的代码

父亲节快到了,如何做一个美观好看送给父亲节的Python礼物呢?

这个,你可以弄一些图片,比如鲜花、蛋糕什么的
然后 pyqt 弄个窗口,显示出来,加上诸如 父亲节快乐 的提示信息

参考:https://blog.csdn.net/weixin_39554775/article/details/110035848

from manim import *

class HappyFathersDay(Scene):
    def construct(self):
        happyfatherdayText = TextMobject("Happy father's Day")
        Dot1 = Dot(color=RED_A, point=UL+DL)
        Dot2 = Dot(color=RED_A, point=UR+DR)
        Line1 = Line(Dot1, Dot2)

        self.play(ShowCreation(happyfatherdayText)) # 显示文字
        self.play(Transform(happyfatherdayText, Line1)) # 变为直线
        self.play(FadeOut(Line1)) # 直线淡出


真棒。加油。