diff --git a/script_library/index.json b/script_library/index.json index 8753773..cffafaa 100644 --- a/script_library/index.json +++ b/script_library/index.json @@ -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": [ { @@ -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 } ] } diff --git a/script_library/scripts/basic/py_mnemmynh.py b/script_library/scripts/basic/py_mnemmynh.py new file mode 100644 index 0000000..d77e434 --- /dev/null +++ b/script_library/scripts/basic/py_mnemmynh.py @@ -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)