Getting started with writing python code in Notepad ++. after running it, it is just a flash. adding raw_input () helloworld at the end can solve the problem, but some still cannot help?

Source: Internet
Author: User
Php Chinese network (www.php.cn) provides the most comprehensive basic tutorial on programming technology, introducing HTML, CSS, Javascript, Python, Java, Ruby, C, PHP, basic knowledge of MySQL and other programming languages. At the same time, this site also provides a large number of online instances, through which you can better learn programming... Reply: I think you wrote the code using Notepad ++, saved it as a. py file, and double-click the File to execute it.
In fact, Notepad ++ has many powerful functions, as long as you have patience to explore.
Your problem can be solved as follows:
1. after writing the program, run F5 directly in Notepad ++. the following dialog box is displayed.

2. enter cmd/k x: & cd "$ (CURRENT_DIRECTORY)" & python "$ (FULL_CURRENT_PATH)" & ECHO. & PAUSE & EXIT (x: indicates the hard drive letter in the source file of your running Python program)

Run it directly. If you do not want to do this every time, continue with the configuration:
3. Save the script and enter the name and shortcut key.

In this way, you can directly press CTRL + ALT + P to execute the Python code each time, without a flash. Is it easy?

  1. Notepad ++ Python development environment (http://www.cnblogs.com/tt-0411/archive/2011/10/30/2229544.html) )
  2. Using Notepad ++'s nppexec plug-in to build a development environment (http://blog.csdn.net/jianren02/article/details/7584770 )

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.