啊!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
本帖最后由 hveagle 于 2023-4-5 14:27 编辑(1)开卷有益
class FishC:
def __init__(self):
print('鱼C比谁都强!')
class object(FishC, object):
pass
fishc = FishC()
鱼C比谁都强!
FishC.__mro__
(<class '__main__.FishC'>, <class 'object'>)
赞!
那……
(2)老六变明星
class Six:
def __init__(self):
print('老六比谁都强!')
class object(Six, object):
pass
six = Six()
老六比谁都强!
Six.__mro__
(<class '__main__.Six'>, <class 'object'>)
这……
(3)object打脸了
class Six:
def __init__(self):
print('老六比谁都强!')
class object(Six, object):
pass
six = Six()
老六比谁都强!
Six.__mro__
(<class '__main__.Six'>, <class 'object'>)
class C:
pass
C.__mro__
(<class '__main__.C'>, <class 'object'>)
object:{:10_317:}
如果想收获好运,别忘了评分{:10_281:}:
{:5_109:} @isdkz hveagle 发表于 2023-3-19 19:07
@isdkz
来了 这是{:10_256:}
页:
[1]