search
HomeDevelopment ToolsnotepadHow to run python script with notepad++

How to run python script with notepad++

Aug 15, 2019 pm 01:10 PM
notepad++

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!

Statement
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
What to do if not opened notepadWhat to do if not opened notepadApr 16, 2025 pm 07:15 PM

When you encounter a situation where Notepad cannot be opened, you can try the following solutions: 1. Check the file association; 2. Reset Notepad association; 3. Check the system files; 4. Uninstall and reinstall Notepad; 5. Try another text editor; 6. Contact Microsoft Support.

How to make notepad automatically wrapHow to make notepad automatically wrapApr 16, 2025 pm 07:12 PM

Notepad can be made automatically by following the steps: Open the Paragraph settings and enable Automatic Winning in the Format menu. Optionally, set the text's line break width (default is 600 pixels). Apply changes and save settings for later use.

How to cut large texts by notepadHow to cut large texts by notepadApr 16, 2025 pm 07:09 PM

Cut large text in Notepad: Open and select the text file. Select the text to be cut. Copy selected text. Create a new text file. Paste the copied text into a new file.

How to manage notepad shortcut keysHow to manage notepad shortcut keysApr 16, 2025 pm 07:06 PM

There is no direct answer to the method of managing shortcut keys in Notepad. 1. You can use third-party tools such as Notepad to customize shortcuts; 2. You can use AutoHotkey script to create and modify shortcuts; 3. You can modify the Windows registry (not recommended): Create "EditFlags" string value and enter hexadecimal numbers; 4. You can use AutoHotkey script to create custom shortcuts: Create a script file and enter code, such as assigning Ctrl Shift A to save operations.

How to summarize notepad dataHow to summarize notepad dataApr 16, 2025 pm 07:03 PM

Notepad cannot directly summarize data, and requires other tools or methods, including: using spreadsheet programs (such as Excel, Google Sheets) to use code/scripts (such as Python, R) to use third-party tools (such as Notepad, TextCrawler)

How to set the sorting of notepadHow to set the sorting of notepadApr 16, 2025 pm 07:00 PM

Notepad itself does not have a sorting function, so you can sort it with the help of external methods: Use external scripts (such as AutoHotkey): Download and install AutoHotkey. Create and save the sort script. Run the script in Notepad to sort the files. Using external applications: Download and install sorting applications (such as Sort Lines or Text Sort). Open the files you want to sort and use the application to sort.

How to run C language notepadHow to run C language notepadApr 16, 2025 pm 06:57 PM

Running a C language program in Notepad requires a third-party compiler. After installing and configuring MinGW, the steps are as follows: Create a .c file and write code to configure the compiler to compile the code for MinGW (press F9 or go to "Run" >"Compile") and run the program (press F5 or go to "Run" >"Run")

How to make notepad into ChineseHow to make notepad into ChineseApr 16, 2025 pm 06:54 PM

Switching the Notepad interface to Chinese in Windows system only takes five steps: Open Notepad, select the "Format" menu, select "Font", set the language (Simplified Chinese or Traditional Chinese), close and re-open Notepad.

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
1 months agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Chat Commands and How to Use Them
1 months agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

EditPlus Chinese cracked version

EditPlus Chinese cracked version

Small size, syntax highlighting, does not support code prompt function

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor