我有这样一些 Module:
因为都涉及到 scipy, 所以每个文件开头,经常会要这样 import
from matplotlib import pyplot as plt
import numpy as np
import matplotlib as mpl
我想请教一下,有没有办法,可以把这个相同的部分抽出来,这样子,我可以减少一些重复的代码?
同步贴: http://stackoverflow.com/questions/35102484/python-how-to-share-import-between-odules
