Solution to the problem of restarting the pycharm import class library after modification

Pycharm can be instructed to automatically reload modules when they change by adding the following line to settings->Build,Excecution,Deployment->Console->Python Console in pycharm:

%load_ext autoreload
%autoreload 2

Insert image description here

Guess you like

Origin blog.csdn.net/weixin_66397563/article/details/131700261