~ 文章, Blog, 教程...

This blog post is first in a series describing the Great Khan Academy Python Refactor of 2017 And Also 2018. In this post, I'll explain where our codebase went wrong, what we wanted to do to fix it, and why it was so difficult. It will include tips and code that others can use to avoid some of this difficulty themselves. The second post will describe Slicker, a tool we wrote which formed the backbone of our refactoring effort. The third post will describe how we used this refactoring as an opportunity to reduce inter-file dependencies within our codebase, and how that benefited us.


Khan 学院的系列文章, 谈及 Python 开发中常见的一些问题和解决.


There are different ways of creating choropleth maps in Python. In a previous notebook, I showed how you can use the Basemap library to accomplish this. More than 2 years have passed since publication and the available tools have evolved a lot. In this notebook I use the GeoPandas library to create a choropleth map. As you'll see the code is more concise and easier to follow along.



用 matplotlib 来嗯哼, 其实有很多专门的图形库, 可以更加简洁的完成这种绘制了.


Class Based Views (CBV) is one of my favourite things about Django. During my first Django projects (using Django 1.4 around 6 years ago) I was mainly using functional views — that’s what the tutorial recommended then anyway. However, slowly in my next projects I started reducing the amount of functional views and embracing CBVs, slowly understanding their usage and usefulness. Right now, I more or less only use CBVs for my views; even if sometimes it seems more work to use a CBV instead of a functional one I know that sometime in the future I’d be glad that I did it since I’ll want to re-use some view functionality and CBVs are more or less the only way to have DRY views in Django.

An opensource DIY self driving platform for small scale cars. RC CAR + Raspberry Pi + Python (tornado, keras, tensorflow, opencv,.

A book to bring the joy of programming to creative people. With step by step instructions for beginners and tiny programs, fundamental programming concepts are introduced in bite sized sketches. In later chapters, these program sketches become powerful drawing programs, capable of generating new images for 3D printing, CNC, and more.





A Refresher.

Hacker news discussion.



marshmallow-code/marshmallow: A lightweight library for converting complex objects to and from simple Python datatypes.



Twitter is a good ressource to collect data. We can find a few libraries (R or Python) which allow you to build your own dataset with the data generated by Twitter. This tutorial is focus on the preparation of the data and no on the collect. Throughout this analysis we are going to see how to work with the twitter’s data.


叕一则用 twitter 开放数据来作嗯哼的案例, 所以, Fb 要是象 twitter 一样一直公开就不会出事儿了吧...


A best practice when creating Docker containers is keeping the image size to a minimum. The fewer bytes you have to shunt over the network or store on disk, the better. Keeping the size down generally means it is faster to build and deploy your container.

Google Analytics is an incredibly powerful tool. All of the members of your team can see everything from which sources your web traffic comes from to what demographics frequent your site. There’s just one problem, Nobody is willing to go to the Google Analytics site and look. If these features aren’t used they may as well not exist. So, to give teammates easier access you can make a custom Slackbot to display Google Analytics.


面对 Slack 以及 Google 这种接口非常开放的服务平台, 用少量代码完成联接, 一直是非常简单的事儿...



When looking for a new backend language, I naturally went from Python to the new cool kid: Go. But after only one week of Go, I realised that Go was only half of a progress. Better suited to my needs than Python, but too far away from the developer experience I was enjoying when doing Elm in the frontend. So I gave Rust a try.


~ 包/模块/库/片段...

Benchmark for different operations in pandas against various dataframe sizes.



对 Pandas 核心操作的效率进行了检测...结论并没有多少反直觉的


Enhancing ordinary IP cameras with AI, MQTT.

Visual Question Answering Project with state of the art single Model performance.

Zed's Awesome Debug Macros for Python.


专注提升 debug 体验的模块, 只是 Py3 only


Extract a citation network from Google Scholar





ProxyDock is a Dockerfile and Bash script that converts your OpenVPN files into local proxies.

A lightweight music player made in Python. Keep track of commits at Coding repo




等等, GUI 的? 差评...


PEP 567 Backport


Py3.7 内置的, Py3.6 想用, 就得用第三五金了, 当然 Py2 系列的没戏...


Library to work with Xiaomi MiBand 2



居然是乌克兰的兄弟先完成了中国 小米手环的嗯哼...


( ̄▽ ̄)

defaultlogo.png(PNG 图像,256x256 像素) 叕一种试图用 Py 一次性完成所有平台应用开发的嗯哼

国人作品, 解决 https 部署时的证书生成问题

30 Amazing Python Projects for the Past Year (v.2018) 其中有几个国货,也都超过 1000+星了...

<- Qix-/better-exceptions: Pretty and useful exceptions in Python, automatically. 效果惊艳...



蟒营®编程思维提高班 Python版/第13期 正在报名

精品小班/ 永久答疑

扫描报名: 101camp13py

蟒营®式 原创课程



Reactivate Joy by Self-teching with You


关注公众号, 持续获得相关各种咨询:


任何问题, 随时邮件提问可也: