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": 44,
"updated": "2026-03-31T01:58:02.165Z",
"data_version": 45,
"updated": "2026-03-31T13:02:36.601Z",
"announcement": null,
"categories": [
{
Expand Down Expand Up @@ -1075,6 +1075,29 @@
"updated": null,
"status": "active",
"lines": 650
},
{
"id": "py_mnemmynh",
"name": "豆沙包.py",
"name_en": "豆沙包.py",
"desc": "小学生制作偶尔会有些bug,主题内容就是一个非常弱智的AI",
"desc_en": "小学生制作偶尔会有些bug,主题内容就是一个非常弱智的AI",
"category": "basic",
"file": "scripts/basic/py_mnemmynh.py",
"thumbnail": null,
"version": 1,
"file_type": "py",
"author": "潘奕辰",
"author_en": "潘奕辰",
"tags": [
"community"
],
"requires": [],
"min_app_version": "1.5.0",
"added": "2026-03-31",
"updated": null,
"status": "active",
"lines": 19
}
]
}
18 changes: 18 additions & 0 deletions script_library/scripts/basic/py_mnemmynh.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import random

while True:
a = input()
if a == '你好' or a == '早上好' or a == '晚上好' or a == '中午好' or a[1] == '好':
print('你好,我是你的聊天伙伴豆沙包,输入打开控制台,打开控制台')
elif a == '再见' or a == '拜拜':
print('再见')
break
elif a == '打开控制台':
print('问普通疑问句前面加1问:,问是或否的问题前面要加2问:')
else:
if a[0] == '1':
print('我不知道啊!')
else:
choices = ["yes", "no"]
result = random.choice(choices)
print(result)