Size: 800
Comment:
|
Size: 1182
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 14: | Line 14: |
[[[Include(/Introduction)]]] | [[Include(/Introduction)]] |
Line 17: | Line 17: |
[[[Include(/Introduction)]]] == 处理之 == [[[Include(/GettingInformation)]]] == 序列化之 == [[[Include(/Directories)]]] |
[[Include(/GettingInformation)]] == 目录处理 == [[Include(/Directories)]] == 序列化数据 == [[Include(/PicklingData)]] |
Line 23: | Line 24: |
[[[Include(/PicklingData)]]] | [[Include(/CreatingInMemory)]] |
Line 28: | Line 30: |
a small tip: 用{{{print >>f, a_string}}}可以替代{{{f.write(a_string + '\n')}}}。更直观些。 -- QiangningHong 2005/03/11 error: cStringIO module里没有cStringIO方法,应该和StringIO module里的一样,是StringIO().代码:fileHandle = cStringIO.StringIO("to kill a mockingbird") -- DFar 2005/03/11 |
http://ads.developershed.com/articleboxes/devshedtitle.gif
原文处:[http://www.devshed.com/c/a/Python/File-Management-in-Python/ File Management in Python]
-- ZoomQuiet [DateTime(2005-02-04T03:06:47Z)] TableOfContents 可敬的 潘俊勇 居士百忙中发现的,在下也刚好在频率操作文件,所以翻译之!贡献之!
File Management in Python
介绍
获得外部文件信息
目录处理
序列化数据
创立内存文件
撰写团队
反馈
a small tip: 用print >>f, a_string可以替代f.write(a_string + '\n')。更直观些。 -- QiangningHong 2005/03/11
error: cStringIO module里没有cStringIO方法,应该和StringIO module里的一样,是StringIO().代码:fileHandle = cStringIO.StringIO("to kill a mockingbird") -- DFar 2005/03/11