[Language Processing and Python] 4.6 Program Development

Source: Internet
Author: User


 

There are three methods to summarize:

1. The input data contains unexpected characters.

2. The provided functions do not work as expected

3. Errors in understanding Python semantics (you can simply understand the programming errors caused by errors in Python syntax)

Debugging technology

If an error occurs in the program, the interpreter outputs a stack trace to help us debug the program.

Python also provides the debugger:

)

After entering the pdb debugging mode, many commands can be used. You can enter help to view the complete list of commands.

Common Commands include:

Step, next, break, and continue

Defensive Programming

In short, it is to ensure the quality of your code writing, which is not discussed here.

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.