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 Distribution

easy_lottery_zs-1.0.0.tar.gz (3.3 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: easy_lottery_zs-1.0.0.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.0

File hashes

Hashes for easy_lottery_zs-1.0.0.tar.gz
Algorithm Hash digest
SHA256 38587fc05914499c2ac69deaf5324ff10f397004b3633675434b012d8d64dd85
MD5 c0be79ae113a50a79a1c70f5938bac81
BLAKE2b-256 cc877304a226715d9b48daa9137a2ad4e53495fb4ba7f75c1897627b172c5636

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