Add your description here
Project description
PySSQ - 中国双色球随机生成器
一个简单的中国福利彩票双色球随机号码生成器。
安装(测试阶段使用 uv)
# 正式发布后
pip install pyssq
# 测试发布时
uv add --default-index https://test.pypi.org/simple/ pyssq
使用示例
from pyssq import DoubleColorBall
# 生成一注
ticket = DoubleColorBall.generate()
print(DoubleColorBall.pretty_print(ticket))
# 生成5注
for i, ticket in enumerate(DoubleColorBall.generate_batch(5), 1):
print(f"第{i}注: {DoubleColorBall.pretty_print(ticket)}")
# 验证号码
print(DoubleColorBall.validate([1,2,3,4,5,6], 7)) # True
print(DoubleColorBall.validate([1,1,2,3,4,5], 7)) # False
功能
- 随机生成符合规则的双色球号码
- 批量生成多注号码
- 号码验证功能
- 美化输出格式
贡献
欢迎提交 issue 或 pull request。
许可证
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyssq-0.1.0.tar.gz
(3.2 kB
view details)
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
pyssq-0.1.0-py3-none-any.whl
(3.2 kB
view details)
File details
Details for the file pyssq-0.1.0.tar.gz.
File metadata
- Download URL: pyssq-0.1.0.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e3b4ba7614b54e2f2e251ae5f75ff49c134785694eccd3d600f1f201d00a8a6d
|
|
| MD5 |
5733f78cc6ad194a21b3e5fbe85de942
|
|
| BLAKE2b-256 |
6da89e9a4f3059f85261d57cdb522a1f35a0f59298bcc325a10444cecf1498d7
|
File details
Details for the file pyssq-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pyssq-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e75de07e70cd1ae57db35cd5dd36bedf1df77d24e61a5e33aa17db15491f42be
|
|
| MD5 |
b49a83f40e4e49d21a7b67df11cbd754
|
|
| BLAKE2b-256 |
ae7af5cee6ebcadd1db1dc96955cc5dc78fdd554789a34128f9069825b7b76ab
|