一个恶搞的Python库 - 必须声明Im = gay才能使用
Project description
LOL Python库
一个恶搞的Python库,使用前必须满足特定条件。
安装
pip install .
使用要求
必须满足以下两个条件才能正常使用:
- ✅ 必须导入lol库
- ✅ 必须在代码中声明
Im = gay
错误信息
如果不满足上述条件,会显示错误:
u r not a true gay
示例用法
✅ 正确用法
import lol
Im = gay
# 正常运行
result = lol.run()
print(result) # 输出: LOL库正常运行!恭喜你是一个true gay!
# 检查是否是true gay
check = lol.gay_check()
print(check) # 输出: Yes, you are a true gay!
❌ 错误用法(缺少Im = gay)
import lol
# 会抛出异常:u r not a true gay
result = lol.run()
❌ 错误用法(缺少导入)
Im = gay
# 会抛出异常:u r not a true gay
result = lol.run()
API文档
lol.run()
- 运行库的主要功能
- 返回:成功消息字符串
lol.gay_check()
- 检查是否满足true gay条件
- 返回:检查结果字符串
lol.NotTrueGayError
- 自定义异常类
- 错误信息:"u r not a true gay"
注意事项
- 这是一个恶搞库,仅供娱乐使用
- 请勿在生产环境中使用
- 确保在代码中正确声明
Im = gay
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ruin321_useless_tool_collection-1.0.0.tar.gz.
File metadata
- Download URL: ruin321_useless_tool_collection-1.0.0.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4b1f2ad43a6638df48ca51983e1cabbb4ead29c76cb93d34e21d91a7b3801314
|
|
| MD5 |
4b94c94b01721a1a13b73853f68f94dd
|
|
| BLAKE2b-256 |
729c72addf8c986087590927a3d9d3a94e4a1b16c479e8af0b54b39d641c0d39
|
File details
Details for the file ruin321_useless_tool_collection-1.0.0-py3-none-any.whl.
File metadata
- Download URL: ruin321_useless_tool_collection-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f893e0f7ddc89a8f28e25bb51b5a6a167447e1736b4035add50188cff63c706b
|
|
| MD5 |
f90ad0b28c2a43872ab204073fce1a9b
|
|
| BLAKE2b-256 |
88598b1ddef7b9725cebe25cef9fe9df885df30fecdfec28767402aeab689360
|