Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 25 additions & 2 deletions script_library/index.json
Original file line number Diff line number Diff line change
@@ -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": [
{
Expand Down Expand Up @@ -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
}
]
}
33 changes: 33 additions & 0 deletions script_library/scripts/basic/script_mnb6r277.py
Original file line number Diff line number Diff line change
@@ -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 助手 · 丰富扩展库"))