Python 练习题库
共收录 149 道带 hwc 编号的题。每道题有原题文本和可运行的 Python 参考答案,保留原编号。需要 Python 3.10 或更新版本,无需安装第三方运行依赖。
安装与查题
在含有 wheel 文件的目录里运行以下命令。
python -m pip install .\bai_python_hwc-1.0.0-py3-none-any.whl
python
在标准 Python 解释器里输入以下代码。
from bai_python_hwc import bank
print(bank[101].q) # 原题
print(bank[101].a) # 原题与参考答案
print(list(bank)) # 已收录的题号
print(bank[501].pdf) # hwc501 的 PDF 附件位置
bank[424].pdf 和 bank[501].pdf 提供原 PDF 附件。Python 源码项目的 src/bai_python_hwc/questions/ 存放纯题目文本,src/bai_python_hwc/answers/ 存放带原题和 TEST_DO_NOT_CHANGE 函数的可运行脚本。
PyPI 发布后可通过 python -m pip install bai-python-hwc 安装。
题库说明
- 保留原题的编号和文字。题干或样例存在冲突时,参考答案通过注释明确采用的规则。
hwc501的解答包含图形边界、蒙特卡洛采样条件和误差验收标准。
Metadata
Release files for bai-python-hwc 1.0.0
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 |
|---|---|---|---|---|
| bai_python_hwc-1.0.0.tar.gz | 380.6 kB | Without provenance | Details for bai_python_hwc-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bai_python_hwc-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for bai_python_hwc-1.0.0-py3-none-any.whl |
Total release size: 912.4 kB
Release files / bai_python_hwc-1.0.0.tar.gz
| Download URL | bai_python_hwc-1.0.0.tar.gz |
|---|---|
| Size | 380.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fc95460138aee606caa177108f05ae90f54a815d29d2807d08dc63cbbe284d59
|
|
BLAKE2b-256 checksum How to use checksums |
b8a8f502123a89367ce343351c5da3c16801a3ad481c9725f3f47fe5e111e52b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.13
|
Release files / bai_python_hwc-1.0.0-py3-none-any.whl
| Download URL | bai_python_hwc-1.0.0-py3-none-any.whl |
|---|---|
| Size | 531.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
98b6d13c8572e49e475a31c2cb3870e8b845c673bd7501bf01fc198311e1733e
|
|
BLAKE2b-256 checksum How to use checksums |
10d6a5abd51f93d3cfbe605c505ab66d9374a3a15b256fcf5341a13a65a10aaf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.13
|
Security for bai-python-hwc 1.0.0
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.