Skip to main content

this package can use lottery

Project description

easy_lottery

此抽奖程序只需要配置result.csv 格式就是一行,一个人名+编号,

控制台版本用法如下:

  1. 首先在洛谷下载排名信息的csv文件

  2. 在控制台(请不要用ide运行)输入:

    python main_cli.py
    
  3. 首先程序会自动读取并打印成绩信息,成绩为权重,然后等待键盘输入

命令介绍:

  • info:输出当前成员信息;
  • del user_id:手动删除成员;
  • roll prize num:开始抽奖,抽num次,默认以0.05秒的时间间隔滚动,滚动期间按下Ctrl+C停止滚动,抽下一位。每抽出一个用户会自动从抽奖列表中剔除该用户;
  • pub:打印获奖信息。

图形化版本用法如下:

使用 Python 3.10 及以上版本并安装 PyQt6 库,双击 main_gui.pyw 即可。

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

easy_lottery_tools-1.0.0-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for easy_lottery_tools-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c3c90f8cd1f0842f115a6ff42caa329a08ec1275958df6cbc3e215fa72c48e1a
MD5 b16fe131154f0a327e963fe0d5bc5395
BLAKE2b-256 e17006d7c4a51cc95dedae125bed64c74c0db7fedc24d0d2c8a49fb2029907ca

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