自定义在列表头部添加元素的方法,即insert_head 方法
class Mylist(list): def insert_head(self, n): # 下面这种方法是不可行的,在这个方法中insert_head(2)的结果就是[3, 4 ...
class Mylist(list): def insert_head(self, n): # 下面这种方法是不可行的,在这个方法中insert_head(2)的结果就是[3, 4 ...