Notes for getting started with the Python Module

Source: Internet
Author: User

This tool allows the Python module to create and deploy highly interactive websites with less time than JSP/ASP, so Python is one of the best options, it is recommended that beginners learn programming from the Python module first.

PyDev will display a hyperlink, so that you can navigate between the source code of the import library or function. Note that to use this feature across modules in your own source code to link from one module to another), you must modify the PYTHONPATH environment variable and add these modules to it, in this way, the Python module can find them.

If Code cannot be executed, IDE is not very useful. To execute the Python code, select the feedparser. py file from the Navigator view, right-click it, and choose Python> Run. The STARTUP configuration window of Python is displayed.

In the startup configuration window of the Python module, you can define the current directory for script execution, the parameters passed to the script, and the Python interpreter used to run the script. Feedparser. py uses an rss url as a parameter. Therefore, you can enter a URL in the parameter field. For example, the output information is displayed in the Console window during script execution. If an error occurs, the stack trace information is displayed in the Console window. Each line of the trace information can be found through a hyperlink to the Python source code.

The Python debugger was recently added to the PyDev plug-in. To use the debugger, click on the left of the code line to be interrupted in the Python editor to set the breakpoint. In Figure 6, I set a breakpoint at row 1830 of feedparser. py.

In the Navigator view, right-click the Python module and choose "Python> Debug ...". A STARTUP configuration window similar to the preceding one is displayed. Click Debug to enter the Debug view and start the debugger.

  1. How to embed Python into C ++ applications?
  2. In-depth discussion of Ruby and Python syntax comparison
  3. Introduction to Python
  4. Python Learning Experience: version, IDE selection and coding Solutions
  5. Analysis of Python GIL and thread security

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.