[Learn Python from scratch_0.2] Four ways to output Python’s first HelloWorld

1. Use a computer terminal and enter the print command directly:

 2. Use Python’s IDLE to directly enter the print command:

3. Use PyCharm to create a "*.py" file and execute the .py file:

  • Right-click New => Create a new Python file and name it "Test01"
  • Enter the print command in Test01.py
  • Right-click on the blank space, run "Test01", execute the print command, and output "hello world"

 

4. Use VSCode, similar to PyCharm, to create a "*.py" file and execute the .py file:

Install the Python plug-in in VSCode, then create the "*.py" file and execute the .py file

Guess you like

Origin blog.csdn.net/qq_39108767/article/details/124516086