Skip to main content

孩子上小学一年级了,加减乘除的口算就要开始练习了,估计老师肯定会让家长出题,所以提前准备一下,利用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`

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)

Source distribution for PrimarySchoolMath 1.0.4
File Size Uploaded
PrimarySchoolMath-1.0.4.tar.gz 15.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for PrimarySchoolMath 1.0.4
File Interpreter ABI Platform
PrimarySchoolMath-1.0.4-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

1.0.4 This release

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page