摘要:
16.1 TimeAs another example of a user-defined type, we’ll define a class called Time that records the time of day. The class definition looks like thi... 阅读全文
摘要:
15.1 User-defined typesWe have used many of Python’s built-in types; now we are going to define a new type. As an example, we will create a type calle... 阅读全文