XMWAI 0.1.81__py3-none-any.whl → 0.2.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of XMWAI might be problematic. Click here for more details.
- XMWAI/__init__.py +2 -2
- XMWAI/core.py +14 -3
- {xmwai-0.1.81.dist-info → xmwai-0.2.1.dist-info}/METADATA +1 -1
- {xmwai-0.1.81.dist-info → xmwai-0.2.1.dist-info}/RECORD +7 -7
- {xmwai-0.1.81.dist-info → xmwai-0.2.1.dist-info}/WHEEL +1 -1
- {xmwai-0.1.81.dist-info → xmwai-0.2.1.dist-info}/licenses/LICENSE.txt +0 -0
- {xmwai-0.1.81.dist-info → xmwai-0.2.1.dist-info}/top_level.txt +0 -0
XMWAI/__init__.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
from .core import story, photo, reply, poem, get_access_token # 从子模块导入函数到顶层
|
|
1
|
+
from .core import story, photo, reply, poem, get_access_token, crack # 从子模块导入函数到顶层
|
|
2
2
|
from .magic_core import birthday # 从子模块导入函数到顶层
|
|
3
3
|
from .bomb_core import bomb # 从子模块导入函数到顶层
|
|
4
4
|
from .idiom_core import idiom,searchIdiom,get_json_path # 从子模块导入函数到顶层
|
|
5
5
|
|
|
6
|
-
__all__ = ["story", "photo", "reply", "poem", "get_access_token", 'birthday', 'bomb', "idiom", "searchIdiom","get_json_path"] # 可选:明确导出的内容
|
|
6
|
+
__all__ = ["story", "photo", "reply", "poem", "get_access_token", 'birthday', 'bomb', "idiom", "searchIdiom","get_json_path", "crack"] # 可选:明确导出的内容
|
XMWAI/core.py
CHANGED
|
@@ -2,6 +2,7 @@ import re
|
|
|
2
2
|
import requests
|
|
3
3
|
import json
|
|
4
4
|
import os
|
|
5
|
+
import zipfile
|
|
5
6
|
|
|
6
7
|
|
|
7
8
|
def story(role, time, address, event, key=""):
|
|
@@ -211,7 +212,17 @@ def poem(title, key=""):
|
|
|
211
212
|
|
|
212
213
|
response_data = json.loads(response.text)
|
|
213
214
|
content = response_data["choices"][0]["message"]["content"]
|
|
214
|
-
content.replace("
|
|
215
|
-
|
|
216
|
-
|
|
215
|
+
content = content.replace("\n", "")
|
|
216
|
+
while " " in content:
|
|
217
|
+
content = content.replace(" ", "")
|
|
217
218
|
return content
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
def crack(name, pwd):
|
|
222
|
+
try:
|
|
223
|
+
zFile=zipfile.ZipFile(name + ".zip")
|
|
224
|
+
zFile.extractall(pwd=str(pwd).encode())
|
|
225
|
+
print("已成功破解密码:",pwd)
|
|
226
|
+
os.system("Treasuremap.png")
|
|
227
|
+
except:
|
|
228
|
+
print("密码错误")
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
XMWAI/__init__.py,sha256=
|
|
1
|
+
XMWAI/__init__.py,sha256=A0lYc0BhFCbuZC-F4Qkd2tutd-yc-zA_kQ_Rhv-VjjI,510
|
|
2
2
|
XMWAI/bomb_core.py,sha256=dRORqAyhItkFuMUHAN0vwQcvrvb3C5X18hmaUMJ0hhE,1708
|
|
3
|
-
XMWAI/core.py,sha256=
|
|
3
|
+
XMWAI/core.py,sha256=wo4ruTUBoGm2L4wzNLEpQr_mwEdcUF1C8V2MoqjLM9Q,8056
|
|
4
4
|
XMWAI/idiom.json,sha256=HUtPRUzhxBbWoasjadbmbA_5ngQ5AXLu9weQSZ4hzhk,10319857
|
|
5
5
|
XMWAI/idiom_core.py,sha256=0Uu9GxVwEvFAhjj0M2Orw-E9FjKT05jKQDbUvg0wAXE,1577
|
|
6
6
|
XMWAI/magic_core.py,sha256=XU7K4Ta7EAvwBLk20_Hlu18E6Kz8B0HxUBq0YsawikE,3441
|
|
@@ -91,8 +91,8 @@ XMWAI/gif/84.gif,sha256=6Ip_uQmvrr2fagLXu1YqWyI_DL2PVVtKCPtmNtzt3P4,38767
|
|
|
91
91
|
XMWAI/gif/85.gif,sha256=6Ip_uQmvrr2fagLXu1YqWyI_DL2PVVtKCPtmNtzt3P4,38767
|
|
92
92
|
XMWAI/gif/9.gif,sha256=cPouth-xwc3QPcg2m6HMP2OD1ZCeRBD_-RPImvvKAA0,9485
|
|
93
93
|
XMWAI/gif/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
94
|
-
xmwai-0.1.
|
|
95
|
-
xmwai-0.1.
|
|
96
|
-
xmwai-0.1.
|
|
97
|
-
xmwai-0.1.
|
|
98
|
-
xmwai-0.1.
|
|
94
|
+
xmwai-0.2.1.dist-info/licenses/LICENSE.txt,sha256=bcaIQMrIhdQ3O-PoZlexjmW6h-wLGvHxh5Oksl4ohtc,1066
|
|
95
|
+
xmwai-0.2.1.dist-info/METADATA,sha256=tiaKgkg4wcPQAwXM7OT8r3h6XHQWb4joWsccG4kmLIQ,1033
|
|
96
|
+
xmwai-0.2.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
97
|
+
xmwai-0.2.1.dist-info/top_level.txt,sha256=yvGcDI-sggK5jqd9wz0saipZvk3oIE3hNGHlqUjxf0c,6
|
|
98
|
+
xmwai-0.2.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|