~ 文章, Blog, 教程...

Imagine in your company slack team there's this person (we'll call him Jeff). Everything that Jeff says is patently Jeff. Maybe you've even coined a term amongst your group: a Jeffism. What if you could program a Slack bot that randomly generates messages that were undeniably Jeff?


西乔精确的预测了相同的 bot 在微信中诞生后导致人类灭亡的故事 )

Learn how to use Python’s ternary operator to create powerful “one-liners” and enhance logical constructions of your arguments.


必须有, 不过,何必? )

Byterun is a Python interpreter implemented in Python. Through my work on Byterun, I was surprised and delighted to discover that the fundamental structure of the Python interpreter fits easily into the 500-line size restriction. This chapter will walk through the structure of the interpreter and give you enough context to explore it further. The goal is not to explain everything there is to know about interpreters—like so many interesting areas of programming and computer science, you could devote years to developing a deep understanding of the topic.


这几乎就是 PyPy 的诞生机制...

PS: 500行内 已经成为 github 中包含最多脑洞的可用项目了... )

Note from curator - I met Alex at Pycon Singapore / Py APAC as it was called then, I found him inspirational. We sat down and talked about Java developer's obsession with design patterns. It was a blast. I wonder if he would remember. Here is a podcast where he is interviewed. Alex Martelli has dedicated a large part of his career to teaching others how to work with software. He has the highest number of Python questions answered on Stack Overflow, he has written and co-written a number of books on Python, and presented innumerable times at conferences in multiple countries. We spoke to him about how he got started in software, his work with Google, and the trends in development and design patterns that are shaping modern software engineering.


Alex 是 Stack Overflow 中有关 Python 问题回答最多的人. 采访中分享了很多在 google 以及软件工程上的体验 )

A Django site that integrates with Tesseract to provide an OCR service.

Tutorial on how to use messages framework.

Wow 3.x isn't far behind. Couple of years may be. I see more and more companies using 3.x series for newer projects.


基本上差了一个量级... Py3 和 Py2



GeoViews is a new Python library that makes it easy to explore and visualize geographical, meteorological, oceanographic, weather, climate, and other real-world data. GeoViews was developed by Continuum Analytics, in collaboration with the Met Office. GeoViews is completely open source, available under a BSD license freely for both commercial and non-commercial use, and can be obtained as described at the Github site.


BSD 许可的 GeoViews 是一个完备的地理数据分析/展示相关的库. 可以轻巧的生成可互动的地理相关可视化图谱!



url = ''

gv.WMTS(url, layer='VIIRS_CityLights_2012', crs=crs.PlateCarree(), extents=(0, -60, 360, 80))


This week we welcome Reinout van Rees (@reinoutvanrees) as our PyDev of the Week! Reinout is the creator / maintainer of zest.releaser. He has a nice website that includes a Python blog that you might want to check out. I would also recommend checking his Github page to see what projects he’s a part of. Note - We have been including Reinout van Rees blogposts for long time now in importpython. Here you can know more about the person behind the blog.


又一位 van ;-) zest.releaser 的作者, 带大家如何分析一位程序猿的网络数据 )

Whenever I am doing analysis with pandas my first goal is to get data into a panda’s DataFrame using one of the many available options. For the vast majority of instances, I use read_excel , read_csv , or read_sql . There are multiple methods you can use to take a standard python datastructure and create a panda’s DataFrame. For the purposes of these examples, I’m going to create a DataFrame with 3 months of sales information for 3 fictitious companies.


享受 Pandas 的便利,第一步就是将数据倒入为 DataFrames ... )

Go find how many you can answer


发布的网站倒是值得关注: 在线自学 R/Py 进行数据科学研究... )

Mike Driscoll's second book Python 201: Intermediate Python is out.




嗯哼,封面很有爱... )

At PayPal, we write and deploy our fair share of Python, and we wanted to devote a couple minutes to our story and give credit where credit is due. For conclusion seekers, without doubt or further ado: Continuum Analytics’ Anaconda Python distribution has made our lives so much easier. For small- and medium-sized teams, no matter the deployment scale, Anaconda has big implications. But let’s talk about how we got here.


历史原因... snake_esc_sm


cssdbpy is a simple SSDB client written on Cython. Faster standart SSDB client.

Get an understanding of how to dockerize your Django application, using the Gunicorn web server, capable of serving thousands of requests in a minute.


dockerize ~ 又一个新词儿 )

While using Python's os.path module in a project, I got the idea of using it to do a quick-and-dirty check for what drives exist on a Windows system. Actually, not really the physical drives, but the drive letters, that may in reality be mapped any of the following: physical hard disk drives or logical partitions of them, CD or DVD drives, USB drives, or network-mapped drives.

Note I haven't personally gone through the video series, the no of upvotes and views looks pretty decent. Please make your own judgement.


~ Upcoming Conference / User Group Meet


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

基于 Stanford Natural Language Inference (SNLI) 使用神经网络进行计算 和/或

又一个 slack 机器人, 自动从 获得结果

word2vec Google News model slimmed down to 260k English words

The pyh2o module provides Python binding for the H2O HTTP server. Currently this is a toy project, PRs are welcome to make it useful. Think of high performance, interaction with asyncio, etc.


~ 无责任推荐




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

订阅 substack 体验古早写作:

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


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