python笔记-导入模块

169 阅读1分钟
  1. import xx ---导入xx模块
  2. from xx import ss ---导入ss下的子模块xx or方法
  3. from xx import ss as dd ---重命名为dd
  4. from xx.xx.xx import * ---导入所有,不建议,容易和自定义的方法冲突