python tips
2017-07-20 15:07
29 查看
1.动态加载模块
A:
--__init__.py
--test.py
from A import test
test = __import__('A.'+'test',fromlist=['test'])
A:
--__init__.py
--test.py
from A import test
test = __import__('A.'+'test',fromlist=['test'])
相关文章推荐
- python(3)methods & tips~
- python tips - Python可变对象和不可变对象
- Python新路程(3)Python中的注释等小TIPS
- come tips about python Five
- Some tips about Control Flow in Python
- [Python Tips]去除 Trivial 赋值语句
- 笨方法学python 有用的Tips
- Python Performance 2 of n - Python Performance Tips, Part 1
- python tips:导入变量不能以_打头
- python tips
- python网络数据包处理中的一些tips
- Python tips: 什么是*args和**kwargs?
- Python multiprocessing tips
- python time 转换&运算tips
- Python Tips (1)
- Tips-Anaconda与Python共存情况下,包的安装及调用语言冲突问题
- Some tips about Class in Python
- [Python Tips]去除 Trivial 赋值语句
- pythontips(2):hasattr的用法
- Some tips about python