Getting started writing Python code in notepad++ after it runs just a flash and adds raw_input () HelloWorld at the end of the program can solve the problem but some still can't help?

Source: Internet
Author: User

Reply content:

I think you are using notepad++ to write the code, save the file in. py format, and then double-click the file to execute it.
In fact notepad++ has a lot of powerful features, as long as you have the patience to explore.
Your problem can be solved like this:
1. After writing the program, run F5 directly inside the notepad++, the following dialog box appears

2. Enter cmd/k x: & CD "$ (current_directory)" & Python "$ (full_current_path)" & ECHO in the input run program name. & PAUSE & EXIT (where x: is the hard drive letter stored by the source file of the Python program you are running)

You can run it directly. If you do not want to do this every time, please continue to configure:
3. Save the script and enter the name and shortcut key

This way, each time you finish writing Python code, you can execute it directly ctrl+alt+p, and there will be no flash. Isn't it simple?

    1. notepad++ Build the Python development environment ( http://www. Cnblogs.com/tt-0411/arc hive/2011/10/30/2229544.html )
    2. Use notepad++ 's nppexec plug-in to build the 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.