I write
print(__file__)
in JupyterNotebook,and I get enter image description here
I write
print(__file__)
in test.py file ,and run test.py in terminal,and I get the output the file path of the test.py
What is the difference between the execution principle of Jupyter Notebook and python files? Where can I learn about it? How does Python execute?