Home > Development Tools > notepad > body text

How to run python script with notepad++

angryTom
Release: 2019-08-15 13:10:38
Original
6874 people have browsed it

How to run python script with notepad++

Software testing has become more and more important in China in recent years, and the requirements for software testing practitioners are also getting higher and higher. Coding ability has become a must for software testers. basic abilities. Python language is a very important language in software testing. It can be used to complete a lot of work, such as completing automated testing of the UI layer, interface testing, etc.

There are many development tools for Python, including the large and comprehensive pycharm, and the built-in idle which is not very easy to use. How to choose a good development tool has become a concern for many beginners.

Notepad is a very popular text editor that supports code editing in almost all mainstream languages, but it can only edit. After editing, you still need to use the corresponding tools to run it. Can I run the edited code directly in Notepad? ? The answer is yes.

Next, we will make some basic configurations on Notepad to achieve the purpose of running Python scripts.

Recommended tutorial: notepad graphic tutorial

1. Install Python. Download it directly from the official website, and then install it. After the installation is complete, add the Python installation directory to the value of the environment variable path.

How to run python script with notepad++

2. Install Notepad. Download it from the Internet and install it.

3. Notepad ->"Run" menu->"Run" button

How to run python script with notepad++

How to run python script with notepad++

##4. Enter Command: cmd /k cd /d "$(CURRENT_DIRECTORY)" & python "$(FULL_CURRENT_PATH)" & ECHO. &ECHO. & PAUSE & EXIT, click save and set the shortcut key

How to run python script with notepad++

5. Run Python script

1) Click to run

How to run python script with notepad++

2) Shortcut key to run: Use the set shortcut key to run it directly

The above is the detailed content of How to run python script with notepad++. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template