下列代码执行后的输出顺序是( )。
class Base:
def __init__(self):
print("B ", end="")
def __del__(self):
print("~B ", end="")
class Derived(Base):
def __init__(self):
super().__init__()
print("D ", end="")
def __del__(self):
print("~D ", end="")
def main():
p = Derived()
del p
main()
正在加载题目数据…
子题
该题型需在试卷/作业中作答,单题练习暂不支持
答案解析