随笔分类 - python
python笔记
Base64及其Python实现
摘要:本文详细介绍了Base64编码的原理,最后给出其Python实现
阅读全文
[译]The Python Tutorial#11. Brief Tour of the Standard Library — Part II
摘要:[译]The Python Tutorial#Brief Tour of the Standard Library — Part II 翻译
阅读全文
[译]The Python Tutorial#10. Brief Tour of the Standard Library
摘要:[译]The Python Tutorial#Brief Tour of the Standard Library 翻译
阅读全文
[译]The Python Tutorial#12. Virtual Environments and Packages
摘要:[译]The Python Tutorial#Virtual Environments and Packages 翻译
阅读全文
[译]The Python Tutorial#2. Using the Python Interpreter
摘要:[译]The Python Tutorl#Using the Python Interpreter 翻译
阅读全文
[译]The Python Tutorial#1. Whetting Your Appetite
摘要:[译]The Python Tutorl#Whetting Your Appetite 翻译
阅读全文
[译]The Python Tutorial#3. An Informal Introduction to Python
摘要:[译]The Python Tutorial#An Informal Introduction to Python 翻译
阅读全文
[译]The Python Tutorial#7. Input and Output
摘要:The Python Tutorial#Input and Output 翻译 Python 输入输出
阅读全文
[译]The Python Tutorial#8. Errors and Exceptions
摘要:The Python Tutorial#Errors and Exceptions 翻译 Python错误及异常
阅读全文
[译]The Python Tutorial#5. Data Structures
摘要:The Python Tutorial#Data Structures 译文
阅读全文
[译]The Python Tutorial#4. More Control Flow Tools
摘要:The Python Tutorial More Control Flow Tools翻译
阅读全文
Python基础-函数参数
摘要:本文详细介绍了函数的各种形参类型,包括位置参数,默认参数值,关键字参数,任意参数列表,命名关键字参数;也介绍了调用函数时传递实参的各种方式,包括位置实参,关键字实参以及使用\*和\**来解包序列和字典。
阅读全文
Python进阶-继承中的MRO与super
摘要:本文讲述`Python`继承关系中如何通过`super()`调用“父类”方法,`super(Type, CurrentClass)`返回`CurrentClass`的`MRO`中`Type`的下一个类的代理;以及如何设计`Python`类以便正确初始化。
阅读全文
Python基础-类
摘要:本文重点讲述如何创建和使用`Python`类,绑定方法与非绑定方法的区别,以及`Python`的多态与简单继承。
阅读全文
[译]The Python Tutorial#6. Modules
摘要:The Python Tutorial » 6. Modules 翻译
阅读全文
Python基础-包与模块
摘要:1. 为重用以及更好的维护代码,`Python`使用了模块与包;一个`Python`文件就是一个模块,包是组织模块的特殊目录(包含`__init__.py`文件)。
2. 模块搜索路径,`Python`解释器在特定的目录中搜索模块,运行时`sys.path`即搜索路径。
3. 使用`import`关键字导入模块,注意 `import *`与`__all__`的关系。
阅读全文
Python基础-类变量和实例变量
摘要:本文详细介绍Python类变量和实例变量的区别与联系
阅读全文
Python进阶 - 命名空间与作用域
摘要:本文详细讲解Python的命名空间,作用域,以及在使用中的一些常见困惑。
阅读全文
Python进阶 - 对象,名字以及绑定
摘要:本文详细介绍了Python中的对象,名字,以及绑定。
阅读全文
Python基础-__main__
摘要:本文讲解Python中一个特殊的值 __main__,以及其应用
阅读全文
浙公网安备 33010602011771号