This is because Python code is cached in .pyc files. It is interpreted once, after which the cache is used. Sorry, my mistake! Thank you for pointing.
If you need to frequently change files and immediately see the results for development, use Django, which is built into the development process.
It is invoked from the command line using the python interpreter as follows: python manage.py runningerver
Then the @localhost application will be launched on port 8000
Please go read the documents!
Artis source share