Skip to main content

一个恶搞的Python库 - 必须声明Im = gay才能使用

Project description

LOL Python库

一个恶搞的Python库,使用前必须满足特定条件。

安装

pip install .

使用要求

必须满足以下两个条件才能正常使用:

  1. ✅ 必须导入lol库
  2. ✅ 必须在代码中声明 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

ruin321_useless_tool_collection-1.0.0.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file ruin321_useless_tool_collection-1.0.0.tar.gz.

File metadata

File hashes

Hashes for ruin321_useless_tool_collection-1.0.0.tar.gz
Algorithm Hash digest
SHA256 4b1f2ad43a6638df48ca51983e1cabbb4ead29c76cb93d34e21d91a7b3801314
MD5 4b94c94b01721a1a13b73853f68f94dd
BLAKE2b-256 729c72addf8c986087590927a3d9d3a94e4a1b16c479e8af0b54b39d641c0d39

See more details on using hashes here.

File details

Details for the file ruin321_useless_tool_collection-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for ruin321_useless_tool_collection-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f893e0f7ddc89a8f28e25bb51b5a6a167447e1736b4035add50188cff63c706b
MD5 f90ad0b28c2a43872ab204073fce1a9b
BLAKE2b-256 88598b1ddef7b9725cebe25cef9fe9df885df30fecdfec28767402aeab689360

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page