diff --git a/source/c05/c05_09.md b/source/c05/c05_09.md index 49ce7fc5d02a0834095ad345801fcc5d60968512..6b1aa354d45ea0fd9ac03f9f0f8c4a291d96368c 100644 --- a/source/c05/c05_09.md +++ b/source/c05/c05_09.md @@ -6,7 +6,7 @@ >>> file=open('test.txt') >>> >>> print(file.readlines()) # 读取并打印 -Hello, Python +['hello,python\n'] >>> >>> file.close() # 关闭文件句柄 ``` diff --git a/source/c05/c05_09.rst b/source/c05/c05_09.rst index c811677fd802dffea20e341e7c336fefda236060..8f814d6486ae9a433b9ceb448887b0db8d1d615f 100644 --- a/source/c05/c05_09.rst +++ b/source/c05/c05_09.rst @@ -8,7 +8,7 @@ >>> file=open('test.txt') >>> >>> print(file.readlines()) # 读取并打印 - Hello, Python + ['hello,python\n'] >>> >>> file.close() # 关闭文件句柄