pip install asciimatics python from asciimatics.screen import Screen from asciimatics.effects import Cycle, Stars from asciimatics.renderers import FigletText from asciimatics.scene import Scene python def demo(screen): effects = [ Cycle( screen, FigletText("Python Asciimatics", font='big'), screen.height // 2 - 8 ), Cycle( screen, FigletText("Quick Start Guide", font='small'), screen.height // 2 + 3 ), Stars(screen, (screen.width + screen.height) // 2) ] screen.play([Scene(effects, 500)]) Screen.wrapper(demo)


上一篇:
下一篇:
切换中文