这例题的代码要怎么实现呢,
没有找到具体的讲解,
😔😔
from abc import ABCMeta, abstractmethod, abstractproperty
class IList(metaclass = ABCMeta ):
@abstractmethod
def clear(self):
pass
@abstractmethod
def isEmpty(self):
pass
@abstractmethod
def length(self):
pass
@abstractmethod
def get(self,i):
pass
@abstractmethod
def insert(self):
pass
@abstractmethod
def remove(self,x):
pass
@abstractmethod
def indexof(self,x):
pass
@abstractmethod
def display(self):
pass
A = [1,2,3,4,5,6,7]
B = A.length()
print(B)