摘要: the provided structure of link class Link: """A linked list. >>> s = Link(1) >>> s.first 1 >>> s.rest is Link.empty True >>> s = Link(2, Link(3, Link( 阅读全文
posted @ 2024-12-31 19:45 yama_lei 阅读(18) 评论(0) 推荐(0)
摘要: !!!考前注意: 注意不要破坏抽象:比如scheme list要用对应的constructor和selector不要用car,cons 注意在继承的时候,能调用super().method就尽量调用 注意是list of lists 还是list! 降序排列是DESC,升序不用写 如果是print 阅读全文
posted @ 2024-12-31 16:57 yama_lei 阅读(15) 评论(0) 推荐(0)