且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

python中的自引用类?

更新时间:2023-02-02 23:29:14

Python是一种动态语言。属性可以(几乎)在任何时间绑定任何类型。因此,您描述的问题在Python中不存在。

Python is a dynamic language. Attributes can be bound at (almost) any time with any type. Therefore, the problem you are describing does not exist in Python.