api 文档

importlib.import_module(namepackage=None)

Import a module. The name argument specifies what module to import in absolute or relative terms (e.g. either pkg.mod or ..mod). If the name is specified in relative terms, then the package argument must be specified to the package which is to act as the anchor for resolving the package name (e.g. import_module('..mod', 'pkg.subpkg') will import pkg.mod). The specified module will be inserted into sys.modules and returned.

>>> import importlib
>>> s = importlib.import_module('os.path')
>>> s
<module 'ntpath' from 'D:\software\python2.7\lib\ntpath.pyc'>
>>> s

最新文章

  1. Hibernate之加载策略(延迟加载与即时加载)和抓取策略(fetch)
  2. Sweet Alert
  3. Struts2(十)OGNL标签二与Struts2标签
  4. Redis使用介绍
  5. 《Java核心技术卷一》笔记 多线程
  6. [http] http缓存机制
  7. Clean Code第二章&lt;命名&gt;
  8. I.MX6 Power off register hacking
  9. Linux设置禁止用户登陆
  10. android 的异步任务
  11. Mysql 进阶操作
  12. SolrCloud阶段总结
  13. Jquery时间验证和转换工具
  14. input type=passoord 密码框的明密文(显示和隐藏) 显示
  15. C# LINQ语法详解
  16. 解决STM32 I2C接口死锁在BUSY状态的方法讨论
  17. CSS3的媒体查询(Media Queries)与移动设备显示尺寸大全
  18. How To Install WildFly as a Service on Linux
  19. 常用 shell 命令
  20. springmvc静态资源无法加载

热门文章

  1. Python 基础 - 随机列表的交集
  2. 在win7下安装unbuntu系统
  3. php使用 memcache 来存储 session 方法总结
  4. OSI七层与TCP/IP五层网络架构详解
  5. Object对象类
  6. Yii源码阅读笔记(二十八)
  7. json解析jackson ,Gson,等知识总结
  8. 2014年国人开发的最热门的开源软件TOP 100
  9. c# 对于批量表的统一查询 WM_CONCAT行列转换行数
  10. 简单粗暴下载Spring