计算概论C课程课堂随机点名、分组、抽奖和座位表工具
Project description
cm_picker
《计算概论C》课堂随机点名、分组、抽奖和座位表工具。
安装
pip install cm_picker
示例
import cm_picker
names = ['张三', '李四', '王五', '赵六', '钱七', '孙八']
print(cm_picker.pick_one(names))
print(cm_picker.group_by_count(names, 2))
print(cm_picker.lucky_draw(names, ['一等奖', '二等奖']))
chart = cm_picker.make_exam_seating_chart(names, rows=2, cols=3)
cm_picker.save_result(chart, '座位表.csv')
这个库适合在学完列表、随机数、循环之后使用。库负责随机策略和表格保存,学生仍然需要自己准备名单、设计交互和展示结果。
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
cm_picker-1.0.0.tar.gz
(3.1 kB
view details)
File details
Details for the file cm_picker-1.0.0.tar.gz.
File metadata
- Download URL: cm_picker-1.0.0.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
66ea12059c84ea500a12dd12cb6efa6a5e09138b72cfa79de02e86b464d6c00b
|
|
| MD5 |
2121f052fffe4f1de218e4e9623b3452
|
|
| BLAKE2b-256 |
5b13065816fb23463d8bc4fcba16ab541ef7f0766e243d080fdd1ad653f62d97
|