How to reload a file and being able to call it without prefixing by the module name in python?

前端 未结 0 987
攒了一身酷
攒了一身酷 2020-12-25 13:30

I have a function:

def f():
   print(\'hi\')

saved in a file example.py.

I start the prompt on windows and hit pyth

相关标签:
回答
  • 消灭零回复
提交回复
热议问题