Python元类教程 [英] Python metaclasses tutorial

查看:84
本文介绍了Python元类教程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对不起,如果我必须将您用作Google,但Google不能帮助您.我一直在寻找有关Python元类的很好的教程.我记得关于它的一个功能是三窗格图像,其中有元类,类和实例,每个图像对应一列.作者在为每个类逐步添加块的同时,解释了元类背后的魔术.

Sorry if I have to use you as Google, but Google does not help. I was looking for a very good tutorial about metaclasses in Python. One feature I remember about it was a three-paned image where you had metaclasses, classes and instances, one for each column of the image. The author progressively added blocks for each of them, while explaining the magic behind metaclasses.

这是一个很好的教程,但我真的找不到了.

It was a very good tutorial but I really cannot find it any more.

推荐答案

您可能是指 Python类型和对象 .

You may be referring to Python Types and Objects.

这篇关于Python元类教程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆