Luci_Code_Tools
介绍:
给初学者制作的 Python 工具库, 基于 Python 3.13.3 制作
安装 & 导入
pip install Luci-Code-Tools
from Luci_code_tools import *
# 或者
import Luci_code_tools
内容
函数
safe_* = safe_input, safe_int, safe_float
| 名称 | 作用 | 参数 |
|---|---|---|
| color | 输出ANSI彩色字符 | data, text_color, bg_color, mode, newline |
| color_rgb | 输出RGB彩色字符 | data, r, g, b, mode, newline |
| clear_screen | 可跨平台的清屏 | None (没有参数) |
| safe_* | 安全的输入, 防止Ctrl + C和输入流关闭等报错 | prompt, text_color, bg_color, mode |
| cloudflare_play | 输出 CloudFlare 人机验证 | None (没有参数) |
提示: 参数需要按照顺序填
< TODO >
其他
ANSI常用序列 提示: 90-97 为亮色前景色,100-107 为亮色背景色
| 前景色 | 效果 |
|---|---|
| 30 | 黑色 |
| 31 | 红色 |
| 32 | 绿色 |
| 33 | 黄色 |
| 34 | 蓝色 |
| 35 | 紫色 |
| 36 | 青色 |
| 37 | 白色 |
| 显示方式 | 效果 |
|---|---|
| 0 | 默认 |
| 1 | 粗体 + 高亮 |
| 2 | 暗淡 |
| 3 | 斜体(部分终端不支持) |
| 4 | 下划线 |
| 5 | 闪烁 |
| 6 | 快闪(部分终端不支持) |
| 7 | 反色(前景色与背景色互换) |
| 8 | 隐藏 |
| 9 | 删除线 |
| 背景色 | 效果 |
|---|---|
| 40 | 黑色 |
| 41 | 红色 |
| 42 | 绿色 |
| 43 | 黄色 |
| 44 | 蓝色 |
| 45 | 紫色 |
| 46 | 青色 |
| 47 | 白色 |
制作者 & 感谢名单
| 作者 | 分工 |
|---|---|
| DeepSeek | 检查 |
| DeepSeek | 改进 |
| Luci_Code | 代码 |
| Luci_Code | 文档 |
| Luci_Code | 思路 |
| Luci_Code | 上传 |
感谢
<感谢您的阅读,我是Luci_Code, 一名2014年出生的开发者 >
Metadata
Release files for luci-code-tools 1.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| luci_code_tools-1.1.3.tar.gz | 5.1 kB | Without provenance | Details for luci_code_tools-1.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| luci_code_tools-1.1.3-py3-none-any.whl | Python 3 | none | any | Details for luci_code_tools-1.1.3-py3-none-any.whl |
Total release size: 10.3 kB
Release files / luci_code_tools-1.1.3.tar.gz
| Download URL | luci_code_tools-1.1.3.tar.gz |
|---|---|
| Size | 5.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
317687190851804e5e3d75fd62d4599ddf4c5bf964ec00e60268f9b015cea9ce
|
|
BLAKE2b-256 checksum How to use checksums |
dab5a8d8d8b38594059ed80b9e596cff4ade016f9d6d385be4a35badd9d4b582
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / luci_code_tools-1.1.3-py3-none-any.whl
| Download URL | luci_code_tools-1.1.3-py3-none-any.whl |
|---|---|
| Size | 5.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bebbce716dab24ee8a67b592130c42103ad6396125a91ed6c27a3911604d41d0
|
|
BLAKE2b-256 checksum How to use checksums |
cbca1d38e1d681bd06bf253c9c7fd9605f505ddb5db97e6deeb591de0a552482
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Security for luci-code-tools 1.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.