diff --git a/main.py b/main.py new file mode 100644 index 0000000000000000000000000000000000000000..3247a9145b3f1186df1918daccfc50453f79fca4 --- /dev/null +++ b/main.py @@ -0,0 +1,17 @@ +import os +import time + + +def main(): + content = '北京欢迎你为你开天辟地…………' + while True: + # 清理屏幕上的输出 + os.system('cls') # os.system('clear') + print(content) + # 休眠200毫秒 + time.sleep(0.2) + content = content[1:] + content[0] + + +if __name__ == '__main__': + main() \ No newline at end of file