diff --git a/script_library/index.json b/script_library/index.json index f8accd2..38a33df 100644 --- a/script_library/index.json +++ b/script_library/index.json @@ -1,7 +1,7 @@ { "format_version": 1, - "data_version": 83, - "updated": "2026-04-06T22:07:39.462Z", + "data_version": 84, + "updated": "2026-04-07T11:23:31.644Z", "announcement": null, "categories": [ { @@ -1374,6 +1374,29 @@ "updated": null, "status": "active", "lines": 427 + }, + { + "id": "script_mnoj6hz6", + "name": "效果进度条", + "name_en": "效果进度条", + "desc": "一个模板,进度条模板,使用\\r", + "desc_en": "一个模板,进度条模板,使用\\r", + "category": "basic", + "file": "scripts/basic/script_mnoj6hz6.py", + "thumbnail": null, + "version": 1, + "file_type": "py", + "author": "ioo", + "author_en": "ioo", + "tags": [ + "community" + ], + "requires": [], + "min_app_version": "1.5.0", + "added": "2026-04-07", + "updated": null, + "status": "active", + "lines": 26 } ] } diff --git a/script_library/scripts/basic/script_mnoj6hz6.py b/script_library/scripts/basic/script_mnoj6hz6.py new file mode 100644 index 0000000..3eabb7d --- /dev/null +++ b/script_library/scripts/basic/script_mnoj6hz6.py @@ -0,0 +1,26 @@ +# 欢迎使用 PythonIDE!如果觉得好用,请给个好评哦~ +import time +R = "\033[91m" # 红 +G = "\033[92m" # 绿 +Y = "\033[93m" # 黄 +X = "\033[0m" # 重置 +print("普通") +t='█' +for i in range(51): + k=i*2 + print(f"\r|{i*'█'}{(50-i)*' '}|{k}%",end="") + time.sleep(0.08) +#高级 +print("\n高级") +def load(): + + for i in range(51): + if i*2<30: + types=R + elif i*2>30 and i*2<60: + types=Y + elif i*2>60: + types=G + print(f"\r|{types}{i * t}{X}|{(49 - i) * '-'}{i*2}%", end="\033[A") + time.sleep(0.08) +load() \ No newline at end of file