Trooped Project Progress Report

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.