Repeat the import module reload, the problem can not be updated.

In the learning test code, because the imported modules often want to modify, when calling the module.

 

After the second from import all of the features inside the first time.

 

You can turn off the shell to re-open, and that is too much trouble.

 

from imp import reload this is a good way

 

When you from aaa import bbb time

 

You just reload (aaa) either, remember that module aaa, bbb first attempt to import wrong.

Guess you like

Origin www.cnblogs.com/sidianok/p/12060311.html