Primary School Mathematics is a small application developed using Python to automatically generate oral arithmetic problems for primary school students. It allows the hard-working programmer to free his hands from copying questions. This program allows you to have more time to write code without having to worry about handwriting a few oral arithmetic questions.
1. You can set the value range of each arithmetic term and result and the selection of multi-step arithmetic symbols. You can generate results, arithmetic terms, and parenthetical calculations. It supports up to 3-step calculation questions. Division can generate oral calculations with remainders. question.
2. You can simply set the document title and subtitle. Set the number of generated oral arithmetic question documents
3. Generate common types of oral arithmetic questions and oral arithmetic mini-games with one click (under debugging and development)
1. The Python environment for development and debugging of this program is 3.8.13. It is recommended to create a new virtual environment for testing.
Download the program and enter /weadfdsackend, install the program-related dependencies, and run the terminal in the program root directory.
cd weadfdsackendpip install -r requirements.txt
If pip updates dependencies slowly, please try the following code
pip install -r requirements.txt -i http://pypi.douban.com/simple
2. Run python main.py in the terminal in the /weadfdsackend directory, or use vscode or pycharm to open /weadfdsackend/main.py and run the current file.
3. Open the browser and enter http://127.0.0.1:8000/ in the address bar. When you see the picture below, it means the startup is successful.
4. After the program is started, it can be used normally!If you only use this program, you can skip the front-end environment setup and directly view the usage tutorial. The back-end has integrated the packaged front-end page.
1. Enter ./vue3_webfrontend and enter: cd vue3_webfrontend. If you are using vscode, you can use split screen to create a new terminal, so that the server startup of the front and back ends can be seen at a glance.2. Terminal input: npm install to update and download the front-end dependencies. If the speed is too slow, it is recommended to temporarily use a mirror server to download the dependencies: npm install --registry https://registry.npm.taobao.org.
3. Terminal input: npm run dev to start the front-end server. If it is normal, open the URL http://127.0.0.1:5173/ and you will see the following picture
Recently I found that some friends cannot use the code after downloading it. Please see here.
1. The python environment for running and debugging this program is 3.8.X. It is recommended to create a new virtual environment for testing.
2. When running for the first time, if the front-end and back-end report errors, it is most likely that the dependencies are not installed. It is recommended to check the error prompts and install the relevant dependencies.
3. If it still cannot run, you can initiate an issue to provide detailed error information, or contact me for analysis.
Enter the program root directory under the terminal and start the backend first
(fastAPI_psm) bash-3.2$ cd weadfdsackend(fastAPI_psm) bash-3.2$ python main.py
The terminal displays the picture below when the program is started.
1. Example: Generate 60 oral arithmetic problems for addition within 10. Set the value range and operation symbols of the arithmetic items. After setting the number of oral arithmetic problems, click Add a verbal arithmetic problem, and finally click to generate a verbal arithmetic problem!
2. The oral arithmetic test paper is saved in the ./docx directory. You can open it with software and connect it to the printer to print. There is also a download link on the page to facilitate remote downloading.3. Some complex verbal arithmetic questions start with adding verbal arithmetic questions. For example, I want to print 60 mixed verbal arithmetic questions on addition and subtraction within 100, and the result is no more than 70. At this time, we can choose addition and subtraction of operation symbols in the first step, set other parameters, then add oral arithmetic problems, and finally click to generate oral arithmetic problems.
4. You can try more specific uses, it is actually very simple!