Python:用Python中的父引用创建子对象

2024-09-26 21:48:18 发布

您现在位置:Python中文网/ 问答频道 /正文

在Python中,我无法找到如何使用父引用创建子对象。你知道吗

class Parent:
    .....

class Child(Parent):
    .....

#how to achieve this?
Parent p = Child()

Tags: to对象childthisclasshowparentachieve

热门问题