diff --git a/script_library/index.json b/script_library/index.json index 4907b8b..6819c2f 100644 --- a/script_library/index.json +++ b/script_library/index.json @@ -1,7 +1,7 @@ { "format_version": 1, - "data_version": 94, - "updated": "2026-04-17T17:06:15Z", + "data_version": 95, + "updated": "2026-04-17T18:24:51.985Z", "announcement": null, "categories": [ { @@ -1631,6 +1631,29 @@ "updated": null, "status": "active", "lines": 144 + }, + { + "id": "web_crawler_mo38mv63", + "name": "web_crawler", + "name_en": "web_crawler", + "desc": "Name", + "desc_en": "Name", + "category": "basic", + "file": "scripts/basic/web_crawler_mo38mv63.py", + "thumbnail": null, + "version": 1, + "file_type": "py", + "author": "Nice", + "author_en": "Nice", + "tags": [ + "community" + ], + "requires": [], + "min_app_version": "1.5.0", + "added": "2026-04-17", + "updated": null, + "status": "active", + "lines": 26 } ] } diff --git a/script_library/scripts/basic/web_crawler_mo38mv63.py b/script_library/scripts/basic/web_crawler_mo38mv63.py new file mode 100644 index 0000000..3eabb7d --- /dev/null +++ b/script_library/scripts/basic/web_crawler_mo38mv63.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