2007年11月30日 星期五 11:02
在传输一个文件时,为了方便起见,我先把文件压缩成.zip 的文件形式,然后项通过sokect 传输。要怎么实现呢?? 目前我要读取普通文件的方式读取了压缩文件的被压缩后的内容(open()).接受方接到压缩后的内容要怎么才能还原?? -------------- 涓嬩竴閮ㄥ垎 -------------- 一个HTML附件被移除... URL: http://python.cn/pipermail/python-chinese/attachments/20071130/3e7fede9/attachment.html
2007年11月30日 星期五 11:12
ÅжϽÓÊÜÊÇ·ñÍê³É£¬Íê³Éºó×Ô¶¯½âѹ ÔÚ07-11-30£¬wf552554 <wf552554在163.com> дµÀ£º > > ÔÚ´«ÊäÒ»¸öÎļþʱ£¬ÎªÁË·½±ãÆð¼û£¬ÎÒÏȰÑÎļþѹËõ³É.zip µÄÎļþÐÎʽ£¬È»ºóÏîͨ¹ýsokect ´«Êä¡£ÒªÔõôʵÏÖÄØ£¿£¿ > ĿǰÎÒÒª¶ÁÈ¡ÆÕͨÎļþµÄ·½Ê½¶ÁÈ¡ÁËѹËõÎļþµÄ±»Ñ¹ËõºóµÄÄÚÈÝ£¨open()£©.½ÓÊÜ·½½Óµ½Ñ¹ËõºóµÄÄÚÈÝÒªÔõô²ÅÄÜ»¹Ô£¿£¿ > > > > > _______________________________________________ > python-chinese > Post: send python-chinese在lists.python.cn > Subscribe: send subscribe to python-chinese-request在lists.python.cn > Unsubscribe: send unsubscribe to python-chinese-request在lists.python.cn > Detail Info: http://python.cn/mailman/listinfo/python-chinese > -------------- 下一部分 -------------- Ò»¸öHTML¸½¼þ±»ÒƳý... URL: http://python.cn/pipermail/python-chinese/attachments/20071130/dbb92039/attachment.html
2007年11月30日 星期五 11:17
直接用zlib不会更方便吗? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://python.cn/pipermail/python-chinese/attachments/20071130/a73f1ada/attachment.htm
Zeuux © 2025
京ICP备05028076号