天天看點

Python面向對象程式設計 - 一個記事本程式範例(一)

notebook.py

note_book_test.py

運作結果:

[<notebook.Note object at 0x02C40E70>, <notebook.Note object at 0x02C40830>]

Id: 1

Memo: hello world

------------------------------------------

Id: 2

Memo: hello again

********************************************

search keyword: hello

search keyword: world

after modify note 1:

Memo: Hi Master HaKu