如:
# testFunA.py
import re
afun():
strList = re.findall(xx)
bfun():
strList = re.findall(xx)
cfun():
strList = re.findall(xx)
OR
# testFunB.py
afun():
import re
strList = re.findall(xx)
bfun():
import re
strList = re.findall(xx)
cfun():
import re
strList = re.findall(xx)
.py 都是自写函数工具系列,被其它引用处理环节,
re 是官库自带,相信重复 import 应该不会有坑,
如果是自写优化不好的函数呢,两种情况用起来会有怎么样的不同?