随笔分类 -  python

python笔记
Base64及其Python实现
摘要:本文详细介绍了Base64编码的原理,最后给出其Python实现 阅读全文
posted @ 2017-08-17 16:54 珞樱缤纷 阅读(9215) 评论(0) 推荐(1)
[译]The Python Tutorial#11. Brief Tour of the Standard Library — Part II
摘要:[译]The Python Tutorial#Brief Tour of the Standard Library — Part II 翻译 阅读全文
posted @ 2017-07-28 12:06 珞樱缤纷 阅读(463) 评论(0) 推荐(0)
[译]The Python Tutorial#10. Brief Tour of the Standard Library
摘要:[译]The Python Tutorial#Brief Tour of the Standard Library 翻译 阅读全文
posted @ 2017-07-28 12:05 珞樱缤纷 阅读(553) 评论(0) 推荐(1)
[译]The Python Tutorial#12. Virtual Environments and Packages
摘要:[译]The Python Tutorial#Virtual Environments and Packages 翻译 阅读全文
posted @ 2017-07-28 12:04 珞樱缤纷 阅读(401) 评论(0) 推荐(0)
[译]The Python Tutorial#2. Using the Python Interpreter
摘要:[译]The Python Tutorl#Using the Python Interpreter 翻译 阅读全文
posted @ 2017-07-21 16:56 珞樱缤纷 阅读(468) 评论(0) 推荐(0)
[译]The Python Tutorial#1. Whetting Your Appetite
摘要:[译]The Python Tutorl#Whetting Your Appetite 翻译 阅读全文
posted @ 2017-07-21 12:14 珞樱缤纷 阅读(487) 评论(0) 推荐(0)
[译]The Python Tutorial#3. An Informal Introduction to Python
摘要:[译]The Python Tutorial#An Informal Introduction to Python 翻译 阅读全文
posted @ 2017-07-20 12:03 珞樱缤纷 阅读(506) 评论(0) 推荐(0)
[译]The Python Tutorial#7. Input and Output
摘要:The Python Tutorial#Input and Output 翻译 Python 输入输出 阅读全文
posted @ 2017-07-10 17:11 珞樱缤纷 阅读(461) 评论(0) 推荐(0)
[译]The Python Tutorial#8. Errors and Exceptions
摘要:The Python Tutorial#Errors and Exceptions 翻译 Python错误及异常 阅读全文
posted @ 2017-07-07 11:17 珞樱缤纷 阅读(556) 评论(0) 推荐(0)
[译]The Python Tutorial#5. Data Structures
摘要:The Python Tutorial#Data Structures 译文 阅读全文
posted @ 2017-07-05 16:11 珞樱缤纷 阅读(439) 评论(0) 推荐(0)
[译]The Python Tutorial#4. More Control Flow Tools
摘要:The Python Tutorial More Control Flow Tools翻译 阅读全文
posted @ 2017-07-04 16:34 珞樱缤纷 阅读(674) 评论(0) 推荐(0)
Python基础-函数参数
摘要:本文详细介绍了函数的各种形参类型,包括位置参数,默认参数值,关键字参数,任意参数列表,命名关键字参数;也介绍了调用函数时传递实参的各种方式,包括位置实参,关键字实参以及使用\*和\**来解包序列和字典。 阅读全文
posted @ 2017-06-30 19:05 珞樱缤纷 阅读(1472) 评论(0) 推荐(0)
Python进阶-继承中的MRO与super
摘要:本文讲述`Python`继承关系中如何通过`super()`调用“父类”方法,`super(Type, CurrentClass)`返回`CurrentClass`的`MRO`中`Type`的下一个类的代理;以及如何设计`Python`类以便正确初始化。 阅读全文
posted @ 2017-06-29 16:05 珞樱缤纷 阅读(7966) 评论(0) 推荐(4)
Python基础-类
摘要:本文重点讲述如何创建和使用`Python`类,绑定方法与非绑定方法的区别,以及`Python`的多态与简单继承。 阅读全文
posted @ 2017-06-28 17:46 珞樱缤纷 阅读(1070) 评论(0) 推荐(0)
[译]The Python Tutorial#6. Modules
摘要:The Python Tutorial » 6. Modules 翻译 阅读全文
posted @ 2017-06-16 15:48 珞樱缤纷 阅读(476) 评论(0) 推荐(2)
Python基础-包与模块
摘要:1. 为重用以及更好的维护代码,`Python`使用了模块与包;一个`Python`文件就是一个模块,包是组织模块的特殊目录(包含`__init__.py`文件)。 2. 模块搜索路径,`Python`解释器在特定的目录中搜索模块,运行时`sys.path`即搜索路径。 3. 使用`import`关键字导入模块,注意 `import *`与`__all__`的关系。 阅读全文
posted @ 2017-06-16 09:33 珞樱缤纷 阅读(1496) 评论(0) 推荐(0)
Python基础-类变量和实例变量
摘要:本文详细介绍Python类变量和实例变量的区别与联系 阅读全文
posted @ 2017-06-05 15:30 珞樱缤纷 阅读(74161) 评论(1) 推荐(13)
Python进阶 - 命名空间与作用域
摘要:本文详细讲解Python的命名空间,作用域,以及在使用中的一些常见困惑。 阅读全文
posted @ 2017-05-27 18:25 珞樱缤纷 阅读(3984) 评论(1) 推荐(3)
Python进阶 - 对象,名字以及绑定
摘要:本文详细介绍了Python中的对象,名字,以及绑定。 阅读全文
posted @ 2017-05-26 17:44 珞樱缤纷 阅读(3978) 评论(0) 推荐(2)
Python基础-__main__
摘要:本文讲解Python中一个特殊的值 __main__,以及其应用 阅读全文
posted @ 2017-05-25 16:42 珞樱缤纷 阅读(3475) 评论(0) 推荐(0)