蠎加载 115

原文: Import Python Weekly Newsletter - Issue No 115 欢迎, 来 PyChina/weekly 共同翻译/增订/推荐 周刊 蠎消息 ;-) 该读 ~ 文章, Blog, 教程… Worthy Read Fire 介绍 - 能自动生成 CLI 的嗯哼 - By Google CLI Today we are pleased to announce the open-sourcing of Python Fire. Python Fire generates command line interfaces (CLIs) from any Python code. Simply call the Fire function in any Python program to automatically turn that program into a CLI. The library is available from pypi via pip install fire, and the source is available on GitHub. (是也乎: 文档在 google/python-fire: Python Fire is a library for automatically generating command line interfaces (CLIs) from absolutely any Python object. 已经快 5000 星了… ) 用 Python 3.6 类型提示编写更好软件 type annotations Type annotations are a precious tool (especially if used in combination with an advanced IDE like PyCharm) that allow us to: write clear and implicitly documented code, prevent us from invoking methods with wrong data types (ok, actually we can do whatever at runtime since Python is a dynamic language and type hints as the name suggests is just that: an hint) and get useful code suggestions and autocompletion. (是也乎: 简单的说, 追加各种 C++ 式的特性, 就是为了将 IDE 卖的更好… ) 简单机器学习模型5行 Python 代码 machine learning We will test a simple Linear Regression Model by passing it training data and expecting correct output for a new input. 用 Facebook 的 Prophet Library 预测网站流量 machine learning, forecasting I was very interested to see that Facebook recently open sourced a python and R library called prophet which seeks to automate the forecasting process in a more sophisticated but easily tune-able model. In this article, I’ll introduce prophet and show how to use it to predict the volume of traffic in the next year for Practical Business Python. To make this a little more interesting, I will post the prediction through the end of March so we can take a look at how accurate the forecast is. (是也乎: Py+R 的一个实用库,或是说 PaaS ) Generator 清理 generators What happens if you close the generator instead of throwing an exception? (是也乎: 生成器关闭后… ) 俺的经验: 基于长运行时 芹菜 发布的微服务 celery While Celery is well-maintained, it’s not easy to find examples of advanced patterns of real-world usage. Also it’s often been difficult to find solutions to issues that we’ve come across. So I want to share some of our experiences. (是也乎: 又一个重病芹菜依赖症团队的嗯哼… ) 知识 Bootstrapping mindmap A little offtopic but enjoyed reading it. Do check https://github.com/nikitavoloboev/research/ Python 中使用 ctypes 导入:解决溢出问题 ctypes 在Jupyter可重复的数据分析 jupyter 使用Python构建微服务 第一部分 microservices Nowadays it is a common practice to work in smaller applications, sharing the responsibility among many different services. I believe it is critical to have some standard tools between the teams working solving those problems. Note here is the link to Part II https://medium.com/@ssola/building-microservices-with-python-part-2-9f951199094a 用 Python 寻找免费食物 scraping Postmates regularly does promotions where they offer free food and waive the delivery fee for certain restaurants. I recently realized that I could make this simpler by creating something that would track the Postmates website and notify me of deals. 用 Python 解析维基百科全数据 XML 转储 xml, parsing Note - My college project 11 years back did the same thing using C++. Today if I were to attempt the same problem I might look at using mapreduce / spark. (是也乎: 作者用 C++ 作过, 现在用 py 来… ) Python Datetime 获取月范围 datetime HackerRank 二元搜索: 冰淇淋店 algorithms 好物 ~ 包/模块/库/片段… ...

2017-03-14 · 3 min · 1107 words · ZoomQuiet

S07E15g193: 和合技 私例

那时 大马金刀 一起踞坐 在半山 瞥着下面 错落的居民楼 操场 工人俱乐部 红旗 那时 大马金刀 一起踞坐 在半山腰 静静看着下面 错落的居民楼 学校 操场 工人俱乐部 红旗 … 那时 一起大马金刀的坐在半山 静静巡视下面 错落的居民楼 学校 操场 工人俱乐部 红旗 … 吃完 一起静静坐在半山 巡视下方 错落的居民楼 学校 操场 工人俱乐部 红旗 … 此时 一起 大马金刀 踞坐山边 巡视下方 居民楼 学校 操场 工人俱乐部 红旗 … 彼时 一起 大马金刀 踞坐山边 凝视河谷中 居民楼 学校 操场 工人俱乐部 红旗 … 那时一起 大马金刀 踞坐山边 河谷中 居民楼 学校 操场 工人俱乐部 红旗

2017-03-14 · 1 min · 486 words · ZoomQuiet

S07E15g193: 嗯哼重来

S07E15g193: 嗯哼重来 Title: S07E15g193/ 嗯哼重来 Date: 2017-03-14 20:42 Tags: DAMA,write,GC4 Slug: 170314-S07E15g193-re-hummm Author: ZoomQuiet Status: published 佩哥哥一声令下, 原先好容易磨合成功的小组, 不得不破出门户,另行嗯哼… 原本以为只是普通的 重复基建 没想到 ...

2017-03-14 · 9 min · 4285 words · ZoomQuiet

S06E05g56: 巴别塔

本文根据 Ted Chiang 作品《巴比伦塔》改编

2017-03-06 · 1 min · 457 words · ZoomQuiet