Skip to content

Commit e079242

Browse files
committed
update
1 parent 1a3b89d commit e079242

File tree

2 files changed

+86
-0
lines changed

2 files changed

+86
-0
lines changed

bornforthis/.vuepress/sidebar.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ import { sidebar } from "vuepress-theme-hope";
3131
// });
3232

3333
export default sidebar({
34+
"/column/python60/": [
35+
"01",
36+
],
3437
"/blog/crawler/": "structure",
3538
"/blog/2022/": "structure",
3639
"/column/data_analysis": [

bornforthis/blog/2022/03.md

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
---
2+
title: Python 实现跑马灯效果
3+
date: 2022-08-11 19:42:59
4+
author: AI悦创
5+
isOriginal: true
6+
category:
7+
- Python
8+
- Python 跑马灯
9+
- Python 小玩意
10+
tag:
11+
- Python
12+
- Python 跑马灯
13+
- Python 小玩意
14+
icon: blog
15+
sticky: false
16+
star: true
17+
password: false
18+
article: true
19+
timeline: true
20+
image: false
21+
navbar: true
22+
sidebarIcon: true
23+
headerDepth: 5
24+
comment: true
25+
lastUpdated: true
26+
editLink: true
27+
prev: 01.md
28+
next: 03.md
29+
backToTop: true
30+
toc: true
31+
---
32+
33+
你好,我是悦创。
34+
35+
```python
36+
import platform
37+
import os
38+
import sys
39+
import time
40+
41+
42+
def main():
43+
content = "你好,我是悦创。。。"
44+
while True:
45+
# 清理屏幕输出
46+
if platform.system().lower() == "windows":
47+
os.system("cls")
48+
elif 'ipykernel' in sys.modules:
49+
from IPython.display import clear_output as clear
50+
clear()
51+
else:
52+
os.system("clear")
53+
print(content)
54+
# 休眠 300 毫秒
55+
time.sleep(0.3)
56+
content = content[1:] + content[0]
57+
58+
59+
if __name__ == '__main__':
60+
main()
61+
```
62+
63+
欢迎关注我公众号:AI悦创,有更多更好玩的等你发现!
64+
65+
::: details 公众号:AI悦创【二维码】
66+
67+
![](/gzh.jpg)
68+
69+
:::
70+
71+
::: info AI悦创·编程一对一
72+
73+
AI悦创·推出辅导班啦,包括「Python 语言辅导班、C++ 辅导班、java 辅导班、算法/数据结构辅导班、少儿编程、pygame 游戏开发」,全部都是一对一教学:一对一辅导 + 一对一答疑 + 布置作业 + 项目实践等。当然,还有线下线上摄影课程、Photoshop、Premiere 一对一教学、QQ、微信在线,随时响应!微信:Jiabcdefh
74+
75+
C++ 信息奥赛题解,长期更新!长期招收一对一中小学信息奥赛集训,莆田、厦门地区有机会线下上门,其他地区线上。微信:Jiabcdefh
76+
77+
方法一:[QQ](http://wpa.qq.com/msgrd?v=3&uin=1432803776&site=qq&menu=yes)
78+
79+
方法二:微信:Jiabcdefh
80+
81+
:::
82+
83+
![](/zsxq.jpg)

0 commit comments

Comments
 (0)