Python论坛  - 讨论区

标题:Re: [python-chinese] 有没有简单的函数直接给出二进制文件的字节数?

2004年03月03日 星期三 16:18

zhao bear_sh at eastday.com
Wed Mar 3 16:18:03 HKT 2004

CHEN Guang (Oliver),您好!

	我想python在很地方都作了优化,因此在其他语言看来是不是很恰当的写法,在python中是往往可行的

======= 2004-03-03 16:10:07 您在来信中写道:=======

>
>用f=open('c:\mydata.dat','rb')打开一个二进制文件后,有没有简单的函数直接给出此文件的字节数?如果mydata.dat有几十兆大小,read()显然太占内存了。
>
>_________________________________________________________
>Do You Yahoo!? 
>完全免费的雅虎电邮,马上注册获赠额外60兆网络存储空间
>http://cn.rd.yahoo.com/mail_cn/tag/?http://cn.mail.yahoo.com
>_______________________________________________
>python-chinese mailing list
>python-chinese at lists.python.cn
>http://python.cn/mailman/listinfo/python-chinese

= = = = = = = = = = = = = = = = = = = =
			

        致
礼!
 
				 
        zhao
        bear_sh at eastday.com
          2004-03-03

-------------- next part --------------
A non-text attachment was scrubbed...
Name: fox.GIF
Type: image/gif
Size: 9519 bytes
Desc: not available
Url : http://lists.exoweb.net/pipermail/python-chinese/attachments/20040303/9622d646/fox.gif

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

如下红色区域有误,请重新填写。

    你的回复:

    请 登录 后回复。还没有在Zeuux哲思注册吗?现在 注册 !

    Zeuux © 2024

    京ICP备05028076号