孩子上小学一年级了,加减乘除的口算就要开始练习了,估计老师肯定会让家长出题,所以提前准备一下,利用Python开发了一套自动生成小学生口算题的小应用。而且今天是程序员节,撸200行代码庆祝一下。:) 为了让程序员老爹解放抄题的双手,让你拥有更多的时间去写代码而不用去手写几道口算题而伤神伤脑。所以有没有娃子的程序员爹爹加入一起来继续优化个开源小程序的?有什么点子,发现什么BUG,欢迎留言。
仅以此软件,献给那些热爱`Python`的程序员老爹们!
程序核心功能:
1.可以设置各算数项和结果的取值范围及多步算数符号的选择,可以生成求结果、求算数项、带括号的算式,最多支持3步算式题
2.可以简单设置文档标题,小标题。设置生成的口算题文档个数
pip安装:
pip install PrimarySchoolMath
运行:
终端进入python3的交互界面:
import PrimarySchoolMath
如果提示缺少相关依赖包,请安装一下依赖:
pip install python-docx==0.8.7 pip install wxPython==4.0.3
Git克隆或是下载压缩包:
https://github.com/bosichong/PrimarySchoolMathematics
下载程序后进入程序主目录,安装程序相关依赖,在程序根目录下运行终端:
pip install -r requirements.txt
3 程序主目录终端下运行`python3 App.py`
Metadata
Release files for PrimarySchoolMath 1.0.4
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 |
|---|---|---|---|---|
| PrimarySchoolMath-1.0.4.tar.gz | 15.6 kB | Without provenance | Details for PrimarySchoolMath-1.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| PrimarySchoolMath-1.0.4-py3-none-any.whl | Python 3 | none | any | Details for PrimarySchoolMath-1.0.4-py3-none-any.whl |
Total release size: 39.8 kB
Release files / PrimarySchoolMath-1.0.4.tar.gz
| Download URL | PrimarySchoolMath-1.0.4.tar.gz |
|---|---|
| Size | 15.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9c960415f5c28ed71fa1bb1181039410c8ff9e2339c8f901e3b4f2a326939922
|
|
BLAKE2b-256 checksum How to use checksums |
c4fed5ba3fa341b622fbe9ffcb9bd17ce3da0108a992bfc690a9384aea645d60
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/28.8.0 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.6.1
|
Release files / PrimarySchoolMath-1.0.4-py3-none-any.whl
| Download URL | PrimarySchoolMath-1.0.4-py3-none-any.whl |
|---|---|
| Size | 24.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
26f5b5732914335a12db30c290f6583fe68bcf377f9ef30ddbf94f4638788a84
|
|
BLAKE2b-256 checksum How to use checksums |
1576ce0b386a2fe2670282719a864ca85443664ecd57e6e333382c96b537e10f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/28.8.0 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.6.1
|
Security for PrimarySchoolMath 1.0.4
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.