擅长:python、mysql、java
<p>在模块上使用<a href="https://docs.python.org/3/library/importlib.html#importlib.reload" rel="nofollow noreferrer">^{<cd1>}</a>,然后重新导入函数:</p>
<pre class="lang-py prettyprint-override"><code>import importlib
import goal
importlib.reload(goal) # reload the module
# now import the function
from goal import goal_func
</code></pre>