【第5章】Python盒子:模块、包和程序

Python模块包中__init__.py文件的作用(使成“包”):http://blog.csdn.net/yxmmxy7913/article/details/4233420

Python中__init__.py文件的作用详解:http://www.jb51.net/article/92863.htm


Python 字典(Dictionary) 教程:http://www.runoob.com/python/python-dictionary.html


理解Python的迭代器:http://python.jobbole.com/81916/


Python collections模块实例讲解:http://www.jb51.net/article/48771.htm


彻底理解Python切片:http://www.cnblogs.com/weidiao/p/6428681.html


扫描二维码关注公众号,回复: 1656917 查看本文章

Python的from import和import的区别:https://www.zhihu.com/question/38857862


python错误TypeError: 'module' object is not callable:http://blog.csdn.net/huzhenwei/article/details/2895909

——————————————————————————————————————————————————————————

导入模块搜索不到的问题,可借助sys加入模块搜索路径:

import sys

sys.path.append('路径')

import module 和 from module import:前者所有导入的东西使用时需加上模块名的限定,而后者不要

pypi.python.org  √python的模块库

首先考虑的是,内置模块
文档:http://docs.python.org/2.7/











猜你喜欢

转载自blog.csdn.net/ywp_2016/article/details/77141587
今日推荐