Skip to content

Commit f528a85

Browse files
committed
Update yield
1 parent d38f533 commit f528a85

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

yield

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
http://www.cnblogs.com/kaituorensheng/p/3826911.html
12
http://www.ibm.com/developerworks/cn/opensource/os-cn-python-yield/
23
如果直接对文件对象调用 read() 方法,会导致不可预测的内存占用。
34
好的方法是利用固定长度的缓冲区来不断读取文件内容。

0 commit comments

Comments
 (0)