Need to restart python in Terminal every time a change is made to script

前端 未结 5 677
南旧
南旧 2021-01-12 07:57

Every time I make a change to a python script I have to reload python and re-import the module. Please advise how I can modify my scripts and run then without having to rela

5条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-12 09:00

    If it's just some module that's changing, you can call reload(module) in your script.

提交回复
热议问题