Our trooped project is intended to be implemented in the Python language.
Originally decided to use Python to achieve also because you need to learn python, but after a day of understanding, found that Python is very easy to get started, and I feel compared with other languages, closer to my logic, closer to my language.
But suddenly accustomed to python is still a bit difficult, in the process of programming, I found the following several questions, in this summary:
1. Comment Questions
Single-line Comment: #
Multi-line Comment: "'
2. Array problems
Python has list and str two types, list definition a=[] can, in the operation, because Python does not declare the type of variable, so I in the programming according to my preference, directly connected with the string, the result of using the Insert () function, the error, Before realizing that the compiler would default to the variable str type when it was operating on its own.
3. Random number
Python is very handy when generating random numbers, not because there are no fixed numbers each time we use Srand, we just import random and then we use number = Random.randint (10, 16) to generate 10-16 random integers.
4. Type conversion
In fact, this is the most convenient to me is that in the event of a type problem, call type () can clearly see the problem lies
Finally, report on progress and next steps:
Now the interface and the random generation of the formula has been completed, the next algorithm, I would like to call in Python directly before the C program, using the compiled C program results, to determine the correct calculation.
Trooped Project Progress Report