随笔分类 -  Python

Python
摘要:一. 字典的简单介绍 1,字典(dict)是python中唯一的一个映射类型.他是以{ }括起来的键值对组成. 在dict中key是 唯一的. 在保存的时候, 根据key来计算出一个内存地址. 然后将key-value保存在这个地址中. 这种算法被称为hash算法, 所以, 切记, 在dict中存储 阅读全文
posted @ 2018-07-07 07:13 麦麦提敏 编辑
摘要:Python之路【目录】 http://www.cnblogs.com/wupeiqi/articles/4938499.html 阅读全文
posted @ 2017-04-17 09:58 麦麦提敏 编辑
摘要:Python - 开始使用Python编程Python is a programming language that lets you work more quickly and integrate your systems more effectively. You can learn to use Python and see almost immediate gains in productivity and lower maintenance costs.在我使用Ubuntu做为我的操作系统以来,根据我的体会上面说的没错。功能强大,简单灵活的脚本语言。即使你使用windows搭建Pyt 阅读全文
posted @ 2013-05-12 14:43 麦麦提敏 编辑
摘要:Python 编程艺术1. Python 编程艺术享受高效无误且充满乐趣的编程2. def hello(): print hello world!3. 什么样的函数返回 None?4. 没有消息就是最好的消息5. 对许多有经验的程序员来说True / 1 并不是执行成功的意思6. None 是最好的沉默 虽然 0 也不错,然而在 Python 中默认的返回值是 None7. 函数不能既返回结果 又返回错误8. 瘆人的设计“如果 open() 返回 errno”try: fileobj = open(filename)# 虽然 open 能返回错误,但不能保证所有都捕获了啊# 所以还是 catc 阅读全文
posted @ 2013-05-12 14:34 麦麦提敏 编辑

点击右上角即可分享
微信分享提示