Running a file with python is to write a file ending in .py
then save
Then directly in cmd, python and write the path of the py file.
then look at the content
Take a look at running in the terminal, enter python directly to enter the python environment, and then write python code
Enter to run
Exit can use exit()