importpython-barnner.png

该读

~ 文章, Blog, 教程...

Python 创始者/仁义的暴君 Guido 老爹的采访

(是也乎:

老爹每年的公开分享, 都是 Python 的宏观规划,必须理解,在理解中理解...

简单的说:加紧 mobile 和 browser 的浸入,只是当前没有明确的好招; PyPy 很可用了, 但是 Py3 的目标也包含性能的;Py 的整体生态的是好的,没问题的. )

Regular expressions are basically a tiny language all their own that you can use inside of Python and many other programming languages. You will often hear regular expressions referred to as “regex”, “regexp” or just “RE”. Some languages, such as Perl and Ruby, actually support regular expression syntax directly in the language itself. Python only supports them via a library that you need to import. The primary use for regular expressions is matching strings. You create the string matching rules using a regular expression and then you apply it to a string to see if there are any matches.

(是也乎:

正则表达式几乎是一种独立语言了, 在 Py 中当然也能简洁的用起来. )

Lambda expressions provide a way to pass functionality into a function. Sadly, Python puts two annoying restrictions on lambda expressions. First, lambdas can only contain an expression, not statements. Second, lambdas can’t be serialized to disk. This blog shows how we can work around these restrictions and unleash the full power of lambdas.

(是也乎:

如何在 Py 中真正引爆 Lambada 的能量? 用 dill 来替代 pickle! ANACONDA 内置实用序列化模块... )

By definition, clustering is a task of grouping a set of objects in a way that objects in a particular group are more similar to each other rather than the objects in the other groups. It has multiple applications in almost every field. You can even segment your customers into different groups based on their purchase patterns. This is a Python script demonstrating the basic clustering algorithm, “k-means”. Also, it will plot the clusters using Plotly API. It uses sample data points for now, but you can easily feed in your dataset.

(是也乎:

正热门的数据科学又一实例,"k-means" 完成聚类, 用 Plotly 接口进行可视化 )

If you are a flask user. You would greatly benefit by this pretty exhaustive (information wise) talk. Do you think that because Flask is a micro-framework, it must only be good for small, toy-like web applications? Well, not at all! In this tutorial I am going to show you a few patterns and best practices that can take your Flask application to the next level.

(是也乎:

作为微型框架 flask 也可以提供大规模服务!

PS: 同理 Bottle 也是可以的... )

Today we're going to make a Python library that is actually the Go webserver, for which we can write handlers in Python. It makes Python servers really fast, and—more importantly—it’s a bit fun and experimental. Andrey Petrov is the author of urllib3. If you have coded in Go you would realize this is pretty cool idea.

(是也乎:

人生苦短, Python 当歌 !-)

  • 从头创建 Python 框架 - Code walkthrough
    • web framework You're curious how web frameworks work because you want to become a better web developer. This post aims to describe what I learned by writing a small server and framework by explaining the design and implementation process step by step, function by function.

(是也乎:

源发自 the-clean-architecture

的框架实例...

)

Lots of packages get a lot of love like django-rest-framework and wagtail, and rightfully so, they’re awesome! But I wanted to give some less well know ones some love.

PyCon India, the premier conference in India on using and developing the Python programming language is conducted annually by the Python developer community. It attracts the best Python programmers across the country and abroad. Submit your proposal here.

Caches are important in helping to solve time complexity issues, and ensure that we don’t run a time-consuming program twice. You never know when your scripts can just stop abruptly, and then you lose all the information in your cache, and you have you run everything all over again.In order to counter this, saving your cache to a disk is something that can be very helpful in that it allows state to be saved to disk, and be retrieved from it anytime as long as its there.

(是也乎:

保卫我们的运行时数据,用 修饰符, 随时导出到硬盘! )

In this post we will implement a simple 3-layer neural network from scratch. We won’t derive all the math that’s required, but I will try to give an intuitive explanation of what we are doing. I will also point to resources for you read up on the details. Here I’m assuming that you are familiar with basic Calculus and Machine Learning concepts, e.g. you know what classification and regularization is. But even if you’re not familiar with any of the above this post could still turn out to be interesting ;)

It turns out my kids have been sending each other secret messages, enciphered with a substitution cipher of their own invention! They only let me see the secret key when I agreed to help them mix up a very complicated recipe for invisible ink.

(是也乎:

二战中最强大的德军密码机,现在用纸+脚本就可以完美复刻. )

I had a programming interview recently, a phone-screen in which we used a collaborative text editor. I was asked to implement a certain API, and chose to do so in Python. Abstracting away the problem statement, let’s say I needed a class whose instances stored some data and some other_data. As it turns out, we were both wrong. The real answer lay in understanding the distinction between class and instance attributes.

(是也乎:

是的,虽然是 Python 的基础功能,但是,很少人用对味儿. )

活动

~ Upcoming Conference / User Group Meet

项目

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

一键安装 深度学习 相关的所有东西, 用 Docker. (含 TensorFlow, Theano, Torch, Caffe, etc.)

对 Xeneta 销售数据进行机械学习分析的相关脚本

对断言的增强, 每当运行出错时, 当然希望能输出更多参考信息.

(是也乎:

希望能进入内建模块的又一个人性化实用模块 )

对 Flask CLI 的增强

在 GUI 上自动完成单词的简单工具, Linux 的.

支持 md 写作时的图片发布工具 , 自动从剪贴板中提取图像上传云端, 并组织成 md 图片字串复制回 剪贴板.

用 golang 和 Python 联合完成的高性能分布式 爬虫.

(是也乎:

名字叫 又一个XXX 的很容易成功, 嘦解决初代模块的痛点问题.

Fuubo 团队作品! 是的, 为一个 HR 服务提供后台数据用.

)

尝试直接从 Py 运行 go 代码.

(是也乎:

再次检验了 CPython 的 C 语言接口能力而已 )

能在终端绘制动画文字效果的工具.

(是也乎:

scroller )

Python Design Patterns. Here is an overview of several different design patterns and concepts in Python.

DAMA 无责任推荐

  • 贡献一个刚刚好的python仓库吧:https://github.com/shell909090/webserver

从头开始写一个 web服务器,python代码刚刚好1046行 由著名的 7牛 CSO 分享 引发自 爱上Python~送书换头像 活动

是也乎


Comments


大妈的多重宇宙 - YouTube

全新自媒体系列...科学幻想,读书,说故事...

任何问题

随时邮件提问可也:
askdama@googlegroups.com

-->