Quantcast
Channel: CodeSection,代码区,Python开发技术文章_教程 - CodeSec
Viewing all articles
Browse latest Browse all 9596

Python精选阅读 0x01期

$
0
0
专题:python的各种黑魔法

用各种generator/iterator/descriptor等黑魔法,加上各种函数编程方法的使用,Python总能使用很短的代码完成很复杂的事情,下面集中放一些这方面的文章

知乎问答 Python 有哪些让你相见恨晚的技巧

Quora What are some cool Python tricks?

Python的各种奇技淫巧

Python Tips and Traps

Performance Tips

30 Python Language Features and Tricks You May Not Know About

Python 探针实现原理

本文将简单讲述一下 Python 探针的实现原理。 这里的探针是指通过import_hook,sitecustomize.py,decorator等方法,向python代码中的模块,函数,对象等注入探针代码,监控一些需要的指标等等。

The Python JITs are coming

本文讲述了各种针对CPython的JIT方案(比如Pyston和Pyjion),尤其是针对Numpy等科学计算库的JIT化的进展与困扰。本文认为Python科学计算的未来必定会大规模的引用JIT以提升效率。HN上相关的讨论见 这里 。

The One Python Library Everyone Needs

本文推荐使用python的库attrs,用来封装程序中各种需要对象化存储的东西。attrs的文档见 https://attrs.readthedocs.io/ ,下面是一个用attrs来存放Server地址的简单例子:

import attr @attr.s class Server(object): host = attr.ib() port = attr.ib() dns_server = Server(host="192.168.1.1", port="53") 十分钟快速入门Pandas

比较简单的Pandas入门,有着很详实的例子。英文版本见 An Introduction to Scientific Python Pandas

邮件订阅Python精选阅读


Viewing all articles
Browse latest Browse all 9596

Trending Articles