diff --git a/script_library/index.json b/script_library/index.json index 530c846..4ba4319 100644 --- a/script_library/index.json +++ b/script_library/index.json @@ -1,7 +1,7 @@ { "format_version": 1, - "data_version": 38, - "updated": "2026-03-28T16:01:25.719Z", + "data_version": 39, + "updated": "2026-03-29T03:14:34.612Z", "announcement": null, "categories": [ { @@ -936,6 +936,29 @@ "updated": null, "status": "active", "lines": 227 + }, + { + "id": "script_mnb6r277", + "name": "无", + "name_en": "无", + "desc": "不", + "desc_en": "不", + "category": "basic", + "file": "scripts/basic/script_mnb6r277.py", + "thumbnail": null, + "version": 1, + "file_type": "py", + "author": "afish", + "author_en": "afish", + "tags": [ + "community" + ], + "requires": [], + "min_app_version": "1.5.0", + "added": "2026-03-29", + "updated": null, + "status": "active", + "lines": 33 } ] } diff --git a/script_library/scripts/basic/script_mnb6r277.py b/script_library/scripts/basic/script_mnb6r277.py new file mode 100644 index 0000000..f34bd4b --- /dev/null +++ b/script_library/scripts/basic/script_mnb6r277.py @@ -0,0 +1,33 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +""" +ASCII 艺术示例:纯文本炫酷输出 + +在控制台用字符画出图案,无需图片即可做出视觉效果。 +可配合 Rich 的彩色输出进一步美化。 +""" + +# Python IDE Logo 风格 +logo = r''' + ____ _ _ ____ ___ __ __ ____ + | _ \ _ _| |_| |__ ___ _ __ | _ \_ _| \/ | _ \ + | |_) | | | | __| '_ \ / _ \| '_ \ | | | | || |\/| | | | | + | __/| |_| | |_| | | | (_) | | | | | |_| | || | | | |_| | + |_| \__, |\__|_| |_|\___/|_| |_| |____/___|_| |_|____/ + |___/ +''' + +# 装饰边框 +def box(text, width=40): + lines = text.strip().split("\n") + top = "+" + "-" * (width - 2) + "+" + result = [top] + for line in lines: + result.append("| " + line[:width-4].ljust(width-4) + " |") + result.append(top) + return "\n".join(result) + +print(logo) +print("PythonIDE - 移动端 Python 编程环境") +print() +print(box("支持 Python · JavaScript · HTML 预览\n内置 AI 助手 · 丰富扩展库")) \ No newline at end of file