File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 {
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}
Original file line number Diff line number Diff line change 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 ()
You can’t perform that action at this time.
0 commit comments