pppguest3962:
如:
# 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 应该不会有坑,
如果是自写优化不好的函数呢,两种情况用起来会有怎么样的不同?
from V2EX-最新主题 https://ift.tt/qJn1vth
- 本文固定链接: https://niul.net/531665.html
- 转载请注明: 分享菌 于 牛叻网(NiuL.Net) 发表