How to Use IDEL (python GUI) in Python Development,

Source: Internet
Author: User

How to Use IDEL (python GUI) in Python Development,

This article describes how to use IDEL (python GUI) in Python development. We will share this with you for your reference. The details are as follows:

After installing Python, we hope to use the python GUI to run some of our programs. How can we use the Python GUI?

After reading this blog, you may use the Python GUI to write your own program.

Let's take a look at how Python GUI is used!

1. Create a new file
Create a new file with the following name:

Test_hello.py

2. Open a file using Python GUI
We can choose test_hello.py, right-click --> Edit with IDLE (that is, Python GUI)

Write the following program:

# Define a variable hello = "hello" # print the variable "hello" print (hello) ######################################## ####### test_list = [1, 2, 3, 4, "hongten"] for I in range (1, 10): test_list.append (I) print (test_list)

The Python GUI is presented as follows:

3. Run the program
Click Run --> Run Module F5

For example:

To run the program.

4. Running Effect
The running effect is as follows:

5. Provides the debug function.
After running the program, we have the deBug option. We can enable the deBug function.

Debug running effect:

Summary:

The overall functionality of the software is not much, so you can use it more than a few times. Finally, I hope this tutorial will help the cainiao who just came into contact with me with Python.

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.