Some tips for Python development

Source: Internet
Author: User

1. notepad++ writing a python script

1) Create new file, write code

2) Click on the menu bar, "language", " P", "Python", set the script for the Python language highlighting (so when saving text,notepad++ can also automatically identify the file type is . py)

3) Save: Do not have special characters in the Save Path (Chinese, white space, other special characters), otherwise there may be abnormal situation during the late development, such as can't find the file or folder, Chinese can't recognize the problem

4) Run script (two methods)

A. Open Windows command line tool cmd (start search bar input cmd), go to script folder, execute command python xxxx.py, run script

B. run through notepad++

After the 6.5.2 version of the notepad++, click on the menu bar " file", " open Folder" , "command line ", at this time, cmd has switched to the directory of the script file. In the command-line window that pops up

Execution command python xxxx.py, run the script.

#未完待续 ......><

Some tips for Python development

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.