Home >Backend Development >Python Tutorial >What are the two ways to run a python program?
What are the two ways to run a python program
The first way: REPL
The so-called REPL refers to read, eva, print, loop (read, calculate, print, loop). There are two ways to implement REPL operation:
1, IDLE (Integrated Development Environment Or integrated development and learning environment) is an integrated development environment for Python
2. Windows Command Prompt
Second method: Run the script
The advantage of the REPL method is that it is simple and clear, but it has many shortcomings when facing many large-scale projects. We can solve this problem by running a scriptOpen IDLE, click New File, create a new project, and enter the code you want to run here Note that there are no three consecutive greater than signs here. After writing the script, save it, record the saved path, and name it hello.pyvscode tutorial), the operation method is the same.
python training videos, all on the python learning network, welcome to learn online!
The above is the detailed content of What are the two ways to run a python program?. For more information, please follow other related articles on the PHP Chinese website!