~ 文章, Blog, 教程...

In this Python Programming Tutorial, we will be learning how to unit-test our code using the unittest module. Unit testing will allow you to be more comfortable with refactoring and knowing whether or not your updates broke any of your existing code. Unit testing is a must on any large projects and is used by all major companies. Not only that, but it will greatly improve your personal code as well. Let's get started.


叕一个 TDD 方面的嗯哼了...


This web is a online converter that reads Python 2.x source code and applies a series of fixers to transform it into valid Python 3.x code Enter your Python2 code on the left, hit the button, and boom, Python3 code on the right


可以嘛?敢用嘛? )

This is a story about how very difficult it is to build concurrent programs. It’s also a story about a bug in Python’s Queue class, a class which happens to be the easiest way to make concurrency simple in Python. This is not a happy story: this is a tragedy, a story of deadlocks and despair.

Notebook based off James Powell's talk at PyData 2017.


配合 youtube 的一则 ipynb 分享, metaclasses 开始...


F-strings provide a concise and convenient way to embed python expressions inside string literals for formatting.


针对 PEP 498 的嗯哼 )

Reddit Discussion

Roughly, Hy is to Python as Clojure is to Java. Hy completely inter-ops with Python. I've hit commit 1,500 in my Hy project at work. I wanted to share my experience working with Hy, where I feel it shines and where it falls short.


等等-> Clojure LISP?!


叕一个为了 LISP 的方言, py 造...

#! /usr/bin/env hy
(print "I was going to code in Python syntax, but then I got Hy.")

意思是可以用 Python 来学习 Scheme 了?!



A "fold" is a fundamental primitive in defining operations on data structures; it's particularly important in functional languages where recursion is the default tool to express repetition. In this article I'll present how left and right folds work and how they map to some fundamental recursive patterns. The article starts with Python, which should be (or at least look) familiar to most programmers. It then switches to Haskell for a discussion of more advanced topics like the connection between folding and laziness, as well as monoids.


等等? Haskell ?!



C is relatively difficult to write, making it harder to analyse and test. It would be helpful to be able to do this with a higher level language, such as Python. Analysis and testing don’t affect performance of the actual data structure, so using a slower but easier and more productive language for this seems reasonable. In this article, we walk though a simple example of doing this with a built-in Python library for interfacing with C called ctypes.

This short post shows how to use Python packages googlemaps and GDAL.

One of the reasons why I love the Python programming language is because of how easy debugging is. You don't need a full blown IDE to be able to debug your Python application. We will go through the process of debugging a simple Python script using the pdb module from the Python standard library, which comes with most installation of Python.


叕一个 debug 的经验分享, 只是 print() 可以解决 99% 情况时,有什么新动力要用...


We’re excited to be launching a bunch of new annotation types for images. Since the launch of our bounding box API, we’ve annotated millions of images with boxes to identify a host of different objects, from cars and hats to roof damage and parking lots. Scale is becoming an industry-standard tool for solving computer vision problems.

The post is about a terminal visualization tool lehar that is open sourced at


Find commits by authors in a git repo

$ git shortlog -s | cut -f1 | lehar

还有这种操作?! )

Today the #DjangoTip will be about using select_related and prefetch_related to improve our queries performance. Note - Django developer do check out django newsletter -


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

Service objects for Django



jsonschema2db-test=# select * from schm.root;
-[ RECORD 1 ]------------------------+-----------
id                                   | 1
loan_file_id                         | 1000000000
prefix                               |
loan__amount                         | 500000
subject_property__acreage            | 42
subject_property__address__latitude  | 43
subject_property__address__longitude |
subject_property__address_id         | 1


Generate tables dynamically from a JSON Schema and insert data.

Quick function to go from a dictionary of sets of (images, labels, feature vectors) to checkpoints that can be opened in Tensorboard.



TF 工具的工具... )

Simple PushTX server to push Bitcoin transactions via SMS.


在 5G 时代用 2G 进行交易...只能说 区块链的生命是嗯哼的 )

ORM-queryable YAML fixtures for Django.

Reddit book bot.


叕叕一个 bot


Create API contracts using Python.


叕一个 RESTful 包装工具 )

A native web-based client for Slack.


叕一个 Slack 周边工具..


PyPocketExplore is a CLI-based and web-based API to access Pocket Explore data. It can be used to collect data about the most popular Pocket items for different topics.


叕一个 Pocket 公开数据工具... )

( ̄▽ ̄)

  • PyConChina2017 议题征集开始
    • 申报表单:





  • 上海(约400人参加),预计7个主题演讲(每个40分钟),7个快速演讲(每个10分钟)。
  • 杭州(约200人参加),预计7个主题演讲(每个40分钟)


结果立即在 CPyUG 列表中引发了各种嗯哼, 并有行者组织了议题问卷, 得到稍有不同的期待, 所以, 大会的举行真心得看坚持了. )




关于 ~ DebugUself with DAMA ;-)
点击注册~> 获得 100$ 体验券: DigitalOcean Referral Badge

订阅 substack 体验古早写作:

关注公众号, 持续获得相关各种嗯哼:


**2021.01.11** 因大妈再次创业暂停定期开设, 转换为预约触发:
  • + 扫描预约入群, 学员每满 42 人即启动新一期训练营 ;-)
  • 101camp22.7
  • + 任何问题, 随时邮件提问可也: