在实例中调用 set_number方法会报错
Traceback (most recent call last):
File "D:/pythonworkspace/numberbook/numberbook.py", line 71, in <module>
entries_insert()
File "D:/pythonworkspace/numberbook/numberbook.py", line 61, in entries_insert
new_entry.set_number(str(num_input))
File "D:\pythonworkspace\numberbook\entry.py", line 17, in set_number
self.item_content[type] = number
AttributeError: 'entry' object has no attribute 'item_content'