Skip to content

Commit ae5676b

Browse files
Merge pull request #102 from jinwandalaohu66/submission/script_mnoj6hz6
2 parents e2e0278 + 3cbe176 commit ae5676b

2 files changed

Lines changed: 51 additions & 2 deletions

File tree

script_library/index.json

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"format_version": 1,
3-
"data_version": 83,
4-
"updated": "2026-04-06T22:07:39.462Z",
3+
"data_version": 84,
4+
"updated": "2026-04-07T11:23:31.644Z",
55
"announcement": null,
66
"categories": [
77
{
@@ -1374,6 +1374,29 @@
13741374
"updated": null,
13751375
"status": "active",
13761376
"lines": 427
1377+
},
1378+
{
1379+
"id": "script_mnoj6hz6",
1380+
"name": "效果进度条",
1381+
"name_en": "效果进度条",
1382+
"desc": "一个模板,进度条模板,使用\\r",
1383+
"desc_en": "一个模板,进度条模板,使用\\r",
1384+
"category": "basic",
1385+
"file": "scripts/basic/script_mnoj6hz6.py",
1386+
"thumbnail": null,
1387+
"version": 1,
1388+
"file_type": "py",
1389+
"author": "ioo",
1390+
"author_en": "ioo",
1391+
"tags": [
1392+
"community"
1393+
],
1394+
"requires": [],
1395+
"min_app_version": "1.5.0",
1396+
"added": "2026-04-07",
1397+
"updated": null,
1398+
"status": "active",
1399+
"lines": 26
13771400
}
13781401
]
13791402
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# 欢迎使用 PythonIDE!如果觉得好用,请给个好评哦~
2+
import time
3+
R = "\033[91m" # 红
4+
G = "\033[92m" # 绿
5+
Y = "\033[93m" # 黄
6+
X = "\033[0m" # 重置
7+
print("普通")
8+
t='█'
9+
for i in range(51):
10+
k=i*2
11+
print(f"\r|{i*'█'}{(50-i)*' '}|{k}%",end="")
12+
time.sleep(0.08)
13+
#高级
14+
print("\n高级")
15+
def load():
16+
17+
for i in range(51):
18+
if i*2<30:
19+
types=R
20+
elif i*2>30 and i*2<60:
21+
types=Y
22+
elif i*2>60:
23+
types=G
24+
print(f"\r|{types}{i * t}{X}|{(49 - i) * '-'}{i*2}%", end="\033[A")
25+
time.sleep(0.08)
26+
load()

0 commit comments

Comments
 (0)