In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article focuses on "what is the way python runs the code". Interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn "how python runs the code."
To run python code using the python interpreter
Press WIN+ R to open and run, type cmd to open the command prompt, type python to enter the python interactive interpreter (interactive interpreter, as the name implies, just like a conversation, you type one instruction, and the interpreter runs one instruction).
This approach is not easy to modify if the code goes wrong, so it is usually used for simple use, not for project programming.
Use notepad to write code and then run the instruction
After writing the python code in notepad, save it in a .py file, and then run python using the python directive at the command prompt. The instructions are as follows:
Python py file path, such as python c:/Users/EeeDong-10/Desktop/hello.py
Use development tools to run python code
In many cases, developers prefer to use more comfortable development tools to run code. The following two articles are compiled by VSCode and pycharm to run python files. You can go to learn how to run python.
At this point, I believe you have a deeper understanding of "what is the way python runs the code?" you might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.