蟒蛇设计模式[英] python design patterns

本文是小编为大家收集整理的关于蟒蛇设计模式的处理/解决方法,可以参考本文帮助大家快速定位并解决问题,中文翻译不准确的可切换到English标签页查看源文。

问题描述

我正在寻找提供最佳实践,设计模式和使用Python的扎实原则的任何资源.

推荐答案

这些重叠

像Pythonista一样的代码:惯用python

>

Google Developers Day US - Python Design Design模式

另一个资源以示例为 python食谱.一个好的数字不遵循最佳实践,但是您可以在其中找到一些有用的模式

其他推荐答案

类型

>>> import this

在Python控制台中.

尽管通常将其视为(罚款!)的笑话,但它包含几个有效的Python特异性公理.

其他推荐答案

布鲁斯·埃克尔(Bruce Eckel)的 python In Python 倾向于设计模式

本文地址:https://www.itbaoku.cn/post/627646.html

问题描述

I am looking for any resources that gives examples of Best Practices, Design patterns and the SOLID principles using Python.

推荐答案

Some overlap in these

Intermediate and Advanced Software Carpentry in Python

Code Like a Pythonista: Idiomatic Python

Python Idioms and Efficiency

Google Developers Day US - Python Design Patterns

Another resource is by example at the Python Recipes. A good number do not follow best practices but you can find some patterns in there that are useful

其他推荐答案

Type

>>> import this

in a Python console.

Although this is usually treated as a (fine!) joke, it contains a couple of valid python-specific axioms.

其他推荐答案

Bruce Eckel's Thinking in Python leans heavily on Design Patterns