2007年03月08日 星期四 09:01
ÓÐÒ»¸ö³ÌÐòÒª¾³£¶Áµ½Ò»¸öÎļþ£¬ÎªÁËÌá¸ßЧÂÊ¡£ÎÒ´òË㽫¸ÃÎļþ¶Áµ½ÄÚ´æÖУ¬ ÔÙ½«Õâ¿éÄÚ´æÓ³ÉäΪÎļþ¡£ÇëÎÊÕâ¸öÓÃpytohnÔõôÀ´ÊµÏÖ£¬ÒªÓõ½ÄÇЩmodule£¿ -------------- 下一部分 -------------- Ò»¸öHTML¸½¼þ±»ÒƳý... URL: http://python.cn/pipermail/python-chinese/attachments/20070308/ad3031de/attachment.htm
2007年03月08日 星期四 09:15
看看 mmap 模块,是不是你要的 leopay wrote:: > 有一个程序要经常读到一个文件,为了提高效率。我打算将该文件读到内存中, > 再将这块内存映射为文件。请问这个用pytohn怎么来实现,要用到那些module? > > > ------------------------------------------------------------------------ > > _______________________________________________ > 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 -- Vim 中文 Google 论坛 http://groups.google.com/group/Vim-cn
2007年03月08日 星期四 09:20
¾ßÌåÔõôʵÏÖ»¹²»ÊÇÌ«Çå³þ£¬ÓÐûÓÐʲôԴÂë¿ÉÒԲο¼µÄ? ÔÚ07-3-8£¬tocer <tocer.deng在gmail.com> дµÀ£º > > ¿´¿´ mmap Ä£¿é£¬ÊDz»ÊÇÄãÒªµÄ > > leopay wrote:: > > ÓÐÒ»¸ö³ÌÐòÒª¾³£¶Áµ½Ò»¸öÎļþ£¬ÎªÁËÌá¸ßЧÂÊ¡£ÎÒ´òË㽫¸ÃÎļþ¶Áµ½ÄÚ´æÖУ¬ > > ÔÙ½«Õâ¿éÄÚ´æÓ³ÉäΪÎļþ¡£ÇëÎÊÕâ¸öÓÃpytohnÔõôÀ´ÊµÏÖ£¬ÒªÓõ½ÄÇЩmodule£¿ > > > > > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > 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 > > -- > Vim ÖÐÎÄ Google ÂÛ̳ http://groups.google.com/group/Vim-cn > _______________________________________________ > 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/20070308/b6f37c68/attachment-0001.html
2007年03月08日 星期四 09:20
cStringIO, StringIO 此外,直接把文件读进list,或者string也行。这些都是Py first class的对象。直接都放在内存里面,等要输出了,再往回写就是了。 Py的IO还是可以的,绝大多数情况下用不着作特别的优化。 On 3/7/07, tocer <tocer.deng在gmail.com> wrote: > 看看 mmap 模块,是不是你要的 > > leopay wrote:: > > 有一个程序要经常读到一个文件,为了提高效率。我打算将该文件读到内存中, > > 再将这块内存映射为文件。请问这个用pytohn怎么来实现,要用到那些module? > > > > > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > 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 > > -- > Vim 中文 Google 论坛 http://groups.google.com/group/Vim-cn > _______________________________________________ > 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
2007年03月08日 星期四 09:29
On 3/8/07, leopay <leopay在gmail.com> wrote: > 有一个程序要经常读到一个文件,为了提高效率。我打算将该文件读到内存中, > 再将这块内存映射为文件。请问这个用pytohn怎么来实现,要用到那些module? > _______________________________________________ 参考手册, python 文件对象有内存模式的, 而且你也可以使用 tmpfile 形式的内存虚文件... -- '''Time is unimportant, only life important! http://zoomquiet.org blog在http://blog.zoomquiet.org/pyblosxom/ wiki在http://wiki.woodpecker.org.cn/moin/ZoomQuiet scrap在http://floss.zoomquiet.org douban在http://www.douban.com/people/zoomq/ ____________________________________ Pls. use OpenOffice.org to replace M$ Office. http://zh.openoffice.org Pls. use 7-zip to replace WinRAR/WinZip. http://7-zip.org/zh-cn/ You can get the truely Freedom 4 software. '''
2007年03月08日 星期四 09:30
¹Ø¼üÊÇÔõôÎļþ¶Áµ½ÄÚ´æºó£¬ÔõôÔÙ°ÑÕâ¿éÄÚ´æÓ³ÉäΪһ¸öÎļþ£¬ÒòΪÄǸö¶ÁÎļþµÄ³ÌÐòÊDz»ÄÜÐ޸ĵġ£ÎÒÕâ±ßÖ»ÄܸøËüÖ¸¶¨¶ÁÄǸöÒ»¸öÎļþÃû ÔÚ07-3-8£¬shhgs <shhgs.efhilt在gmail.com> дµÀ£º > > cStringIO, StringIO > > ´ËÍ⣬ֱ½Ó°ÑÎļþ¶Á½ølist£¬»òÕßstringÒ²ÐС£ÕâЩ¶¼ÊÇPy first classµÄ¶ÔÏó¡£Ö±½Ó¶¼·ÅÔÚÄÚ´æÀïÃ棬µÈÒªÊä³öÁË£¬ÔÙÍù»Øд¾ÍÊÇÁË¡£ > > PyµÄIO»¹ÊÇ¿ÉÒԵģ¬¾ø´ó¶àÊýÇé¿öÏÂÓò»×Å×÷ÌرðµÄÓÅ»¯¡£ > > > > On 3/7/07, tocer <tocer.deng在gmail.com> wrote: > > ¿´¿´ mmap Ä£¿é£¬ÊDz»ÊÇÄãÒªµÄ > > > > leopay wrote:: > > > ÓÐÒ»¸ö³ÌÐòÒª¾³£¶Áµ½Ò»¸öÎļþ£¬ÎªÁËÌá¸ßЧÂÊ¡£ÎÒ´òË㽫¸ÃÎļþ¶Áµ½ÄÚ´æÖУ¬ > > > ÔÙ½«Õâ¿éÄÚ´æÓ³ÉäΪÎļþ¡£ÇëÎÊÕâ¸öÓÃpytohnÔõôÀ´ÊµÏÖ£¬ÒªÓõ½ÄÇЩmodule£¿ > > > > > > > > > > ------------------------------------------------------------------------ > > > > > > _______________________________________________ > > > 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 > > > > -- > > Vim ÖÐÎÄ Google ÂÛ̳ http://groups.google.com/group/Vim-cn > > _______________________________________________ > > 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 > _______________________________________________ > 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/20070308/3dbd738a/attachment-0001.htm
2007年03月08日 星期四 09:31
ºÜ´óô£¿linuxÄں˻á°Ñ³£ÓõĶ«Î÷¶¼»º´æÔÚÄÚ´æÀïÃæµÄ¡£ On 3/8/07, leopay <leopay在gmail.com> wrote: > > ÓÐÒ»¸ö³ÌÐòÒª¾³£¶Áµ½Ò»¸öÎļþ£¬ÎªÁËÌá¸ßЧÂÊ¡£ÎÒ´òË㽫¸ÃÎļþ¶Áµ½ÄÚ´æÖУ¬ > ÔÙ½«Õâ¿éÄÚ´æÓ³ÉäΪÎļþ¡£ÇëÎÊÕâ¸öÓÃpytohnÔõôÀ´ÊµÏÖ£¬ÒªÓõ½ÄÇЩmodule£¿ > > _______________________________________________ > 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 > -- Guo Jinpeng Mobile:86-13811168737 Room430,Building 45 jia,Peking University BeiJing 100871 -------------- 下一部分 -------------- Ò»¸öHTML¸½¼þ±»ÒƳý... URL: http://python.cn/pipermail/python-chinese/attachments/20070308/c7131d0d/attachment.html
2007年03月08日 星期四 09:33
Ŷ£¬ÕâÑù°¡£¬ÄǾͷŵ½/dev/shm/ÏÂÃæ On 3/8/07, leopay <leopay在gmail.com> wrote: > > ¹Ø¼üÊÇÔõôÎļþ¶Áµ½ÄÚ´æºó£¬ÔõôÔÙ°ÑÕâ¿éÄÚ´æÓ³ÉäΪһ¸öÎļþ£¬ÒòΪÄǸö¶ÁÎļþµÄ³ÌÐòÊDz»ÄÜÐ޸ĵġ£ÎÒÕâ±ßÖ»ÄܸøËüÖ¸¶¨¶ÁÄǸöÒ»¸öÎļþÃû > > ÔÚ07-3-8£¬shhgs <shhgs.efhilt在gmail.com> дµÀ£º > > > > cStringIO, StringIO > > > > ´ËÍ⣬ֱ½Ó°ÑÎļþ¶Á½ølist£¬»òÕßstringÒ²ÐС£ÕâЩ¶¼ÊÇPy first classµÄ¶ÔÏó¡£Ö±½Ó¶¼·ÅÔÚÄÚ´æÀïÃ棬µÈÒªÊä³öÁË£¬ÔÙÍù»Øд¾ÍÊÇÁË¡£ > > > > PyµÄIO»¹ÊÇ¿ÉÒԵģ¬¾ø´ó¶àÊýÇé¿öÏÂÓò»×Å×÷ÌرðµÄÓÅ»¯¡£ > > > > > > > > On 3/7/07, tocer <tocer.deng在gmail.com> wrote: > > > ¿´¿´ mmap Ä£¿é£¬ÊDz»ÊÇÄãÒªµÄ > > > > > > leopay wrote:: > > > > ÓÐÒ»¸ö³ÌÐòÒª¾³£¶Áµ½Ò»¸öÎļþ£¬ÎªÁËÌá¸ßЧÂÊ¡£ÎÒ´òË㽫¸ÃÎļþ¶Áµ½ÄÚ´æÖУ¬ > > > > ÔÙ½«Õâ¿éÄÚ´æÓ³ÉäΪÎļþ¡£ÇëÎÊÕâ¸öÓÃpytohnÔõôÀ´ÊµÏÖ£¬ÒªÓõ½ÄÇЩmodule£¿ > > > > > > > > > > > > > > ------------------------------------------------------------------------ > > > > > > > > _______________________________________________ > > > > 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 > > > > > > -- > > > Vim ÖÐÎÄ Google ÂÛ̳ http://groups.google.com/group/Vim-cn > > > _______________________________________________ > > > 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 > > _______________________________________________ > > 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 > > > > _______________________________________________ > 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 > -- Guo Jinpeng Mobile:86-13811168737 Room430,Building 45 jia,Peking University BeiJing 100871 -------------- 下一部分 -------------- Ò»¸öHTML¸½¼þ±»ÒƳý... URL: http://python.cn/pipermail/python-chinese/attachments/20070308/82396e9a/attachment.htm
2007年03月08日 星期四 09:33
On 3/8/07, leopay <leopay在gmail.com> wrote: > 关键是怎么文件读到内存后,怎么再把这块内存映射为一个文件,因为那个读文件的程序是不能修改的。我这边只能给它指定读那个一个文件名 > 别吧文件想的和内存有偛不同,都是二进制字串而已, 在Py 中,直接写出就好的 > > 在07-3-8,shhgs <shhgs.efhilt在gmail.com> 写道: > > cStringIO, StringIO > > > > 此外,直接把文件读进list,或者string也行。这些都是Py first > class的对象。直接都放在内存里面,等要输出了,再往回写就是了。 > > > > Py的IO还是可以的,绝大多数情况下用不着作特别的优化。 > > > > > > > > On 3/7/07, tocer <tocer.deng在gmail.com> wrote: > > > 看看 mmap 模块,是不是你要的 > > > > > > leopay wrote:: > > > > 有一个程序要经常读到一个文件,为了提高效率。我打算将该文件读到内存中, > > > > 再将这块内存映射为文件。请问这个用pytohn怎么来实现,要用到那些module? > > > > > > > > > > > > > ------------------------------------------------------------------------ > > > > > > > > _______________________________________________ > > > > 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 > > > > > > -- > > > Vim 中文 Google 论坛 http://groups.google.com/group/Vim-cn > > > _______________________________________________ > > > 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 > > _______________________________________________ > > 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 > > > _______________________________________________ > 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 > -- '''Time is unimportant, only life important! http://zoomquiet.org blog在http://blog.zoomquiet.org/pyblosxom/ wiki在http://wiki.woodpecker.org.cn/moin/ZoomQuiet scrap在http://floss.zoomquiet.org douban在http://www.douban.com/people/zoomq/ ____________________________________ Pls. use OpenOffice.org to replace M$ Office. http://zh.openoffice.org Pls. use 7-zip to replace WinRAR/WinZip. http://7-zip.org/zh-cn/ You can get the truely Freedom 4 software. '''
2007年03月08日 星期四 09:35
²»´ó£¬½ö½öÊÇΪÁËÌá¸ßЧÂÊ ÔÚ07-3-8£¬mmx <mmxpeng在gmail.com> дµÀ£º > > ºÜ´óô£¿linuxÄں˻á°Ñ³£ÓõĶ«Î÷¶¼»º´æÔÚÄÚ´æÀïÃæµÄ¡£ > > On 3/8/07, leopay <leopay在gmail.com> wrote: > > > > ÓÐÒ»¸ö³ÌÐòÒª¾³£¶Áµ½Ò»¸öÎļþ£¬ÎªÁËÌá¸ßЧÂÊ¡£ÎÒ´òË㽫¸ÃÎļþ¶Áµ½ÄÚ´æÖУ¬ > > ÔÙ½«Õâ¿éÄÚ´æÓ³ÉäΪÎļþ¡£ÇëÎÊÕâ¸öÓÃpytohnÔõôÀ´ÊµÏÖ£¬ÒªÓõ½ÄÇЩmodule£¿ > > > > _______________________________________________ > > 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 > > > > > > -- > Guo Jinpeng > Mobile:86-13811168737 > Room430,Building 45 jia,Peking University > BeiJing 100871 > _______________________________________________ > 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/20070308/72bf846d/attachment-0001.html
2007年03月08日 星期四 09:47
ÎÒÕâÑùÀí½âÊDz»ÊǶԵģ¿ ½«ÄǸöÎļþreadºó´æÔÚ/dev/shm/Ŀ¼ÏÂ,È»ºóÄǸö³ÌÐòÖ±½Ó¶ÁshmĿ¼ÏµÄÎļþ¡£ ÔÚ07-3-8£¬Zoom. Quiet <zoom.quiet在gmail.com> дµÀ£º > > On 3/8/07, leopay <leopay在gmail.com> wrote: > > ¹Ø¼üÊÇÔõôÎļþ¶Áµ½ÄÚ´æºó£¬ÔõôÔÙ°ÑÕâ¿éÄÚ´æÓ³ÉäΪһ¸öÎļþ£¬ÒòΪÄǸö¶ÁÎļþµÄ³ÌÐòÊDz»ÄÜÐ޸ĵġ£ÎÒÕâ±ßÖ»ÄܸøËüÖ¸¶¨¶ÁÄǸöÒ»¸öÎļþÃû > > > ±ð°ÉÎļþÏëµÄºÍÄÚ´æÓв²»Í¬£¬¶¼ÊǶþ½øÖÆ×Ö´®¶øÒÑ£¬ > ÔÚPy ÖУ¬Ö±½Óд³ö¾ÍºÃµÄ > > > > ÔÚ07-3-8£¬shhgs <shhgs.efhilt在gmail.com> дµÀ£º > > > cStringIO, StringIO > > > > > > ´ËÍ⣬ֱ½Ó°ÑÎļþ¶Á½ølist£¬»òÕßstringÒ²ÐС£ÕâЩ¶¼ÊÇPy first > > classµÄ¶ÔÏó¡£Ö±½Ó¶¼·ÅÔÚÄÚ´æÀïÃ棬µÈÒªÊä³öÁË£¬ÔÙÍù»Øд¾ÍÊÇÁË¡£ > > > > > > PyµÄIO»¹ÊÇ¿ÉÒԵģ¬¾ø´ó¶àÊýÇé¿öÏÂÓò»×Å×÷ÌرðµÄÓÅ»¯¡£ > > > > > > > > > > > > On 3/7/07, tocer <tocer.deng在gmail.com> wrote: > > > > ¿´¿´ mmap Ä£¿é£¬ÊDz»ÊÇÄãÒªµÄ > > > > > > > > leopay wrote:: > > > > > ÓÐÒ»¸ö³ÌÐòÒª¾³£¶Áµ½Ò»¸öÎļþ£¬ÎªÁËÌá¸ßЧÂÊ¡£ÎÒ´òË㽫¸ÃÎļþ¶Áµ½ÄÚ´æÖУ¬ > > > > > ÔÙ½«Õâ¿éÄÚ´æÓ³ÉäΪÎļþ¡£ÇëÎÊÕâ¸öÓÃpytohnÔõôÀ´ÊµÏÖ£¬ÒªÓõ½ÄÇЩmodule£¿ > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------ > > > > > > > > > > _______________________________________________ > > > > > 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 > > > > > > > > -- > > > > Vim ÖÐÎÄ Google ÂÛ̳ http://groups.google.com/group/Vim-cn > > > > _______________________________________________ > > > > 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 > > > _______________________________________________ > > > 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 > > > > > > _______________________________________________ > > 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 > > > > > -- > '''Time is unimportant, only life important! > http://zoomquiet.org > blog在http://blog.zoomquiet.org/pyblosxom/ > wiki在http://wiki.woodpecker.org.cn/moin/ZoomQuiet > scrap在http://floss.zoomquiet.org > douban在http://www.douban.com/people/zoomq/ > ____________________________________ > Pls. use OpenOffice.org to replace M$ Office. > http://zh.openoffice.org > Pls. use 7-zip to replace WinRAR/WinZip. > http://7-zip.org/zh-cn/ > You can get the truely Freedom 4 software. > ''' > _______________________________________________ > 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/20070308/958f8634/attachment.html
2007年03月08日 星期四 10:06
Ö±½Ócopyµ½/dev/shm ÏÂÃæ¾ÍÐУ¬È»ºóÄǸö³ÌÐòµ½shmĿ¼ÏÂÈ¥¶Á µ«ÊÇ£¬¶ÏµçµÄ»°£¬Õâ¸öÎļþ¿É¾ÍûÀ²¡£¡£ On 3/8/07, leopay <leopay在gmail.com> wrote: > > ÎÒÕâÑùÀí½âÊDz»ÊǶԵģ¿ > ½«ÄǸöÎļþreadºó´æÔÚ/dev/shm/Ŀ¼ÏÂ,È»ºóÄǸö³ÌÐòÖ±½Ó¶ÁshmĿ¼ÏµÄÎļþ¡£ > > > ÔÚ07-3-8£¬Zoom. Quiet <zoom.quiet在gmail.com> дµÀ£º > > > > On 3/8/07, leopay <leopay在gmail.com> wrote: > > > ¹Ø¼üÊÇÔõôÎļþ¶Áµ½ÄÚ´æºó£¬ÔõôÔÙ°ÑÕâ¿éÄÚ´æÓ³ÉäΪһ¸öÎļþ£¬ÒòΪÄǸö¶ÁÎļþµÄ³ÌÐòÊDz»ÄÜÐ޸ĵġ£ÎÒÕâ±ßÖ»ÄܸøËüÖ¸¶¨¶ÁÄǸöÒ»¸öÎļþÃû > > > > > ±ð°ÉÎļþÏëµÄºÍÄÚ´æÓв²»Í¬£¬¶¼ÊǶþ½øÖÆ×Ö´®¶øÒÑ£¬ > > ÔÚPy ÖУ¬Ö±½Óд³ö¾ÍºÃµÄ > > > > > > ÔÚ07-3-8£¬shhgs <shhgs.efhilt在gmail.com> дµÀ£º > > > > cStringIO, StringIO > > > > > > > > ´ËÍ⣬ֱ½Ó°ÑÎļþ¶Á½ølist£¬»òÕßstringÒ²ÐС£ÕâЩ¶¼ÊÇPy first > > > classµÄ¶ÔÏó¡£Ö±½Ó¶¼·ÅÔÚÄÚ´æÀïÃ棬µÈÒªÊä³öÁË£¬ÔÙÍù»Øд¾ÍÊÇÁË¡£ > > > > > > > > PyµÄIO»¹ÊÇ¿ÉÒԵģ¬¾ø´ó¶àÊýÇé¿öÏÂÓò»×Å×÷ÌرðµÄÓÅ»¯¡£ > > > > > > > > > > > > > > > > On 3/7/07, tocer <tocer.deng在gmail.com > wrote: > > > > > ¿´¿´ mmap Ä£¿é£¬ÊDz»ÊÇÄãÒªµÄ > > > > > > > > > > leopay wrote:: > > > > > > ÓÐÒ»¸ö³ÌÐòÒª¾³£¶Áµ½Ò»¸öÎļþ£¬ÎªÁËÌá¸ßЧÂÊ¡£ÎÒ´òË㽫¸ÃÎļþ¶Áµ½ÄÚ´æÖУ¬ > > > > > > ÔÙ½«Õâ¿éÄÚ´æÓ³ÉäΪÎļþ¡£ÇëÎÊÕâ¸öÓÃpytohnÔõôÀ´ÊµÏÖ£¬ÒªÓõ½ÄÇЩmodule£¿ > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------ > > > > > > > > > > > > _______________________________________________ > > > > > > 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 > > > > > > > > > > -- > > > > > Vim ÖÐÎÄ Google ÂÛ̳ http://groups.google.com/group/Vim-cn > > > > > _______________________________________________ > > > > > 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 > > > > _______________________________________________ > > > > 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 > > > > > > > > > _______________________________________________ > > > 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 > > > > > > > > > -- > > '''Time is unimportant, only life important! > > http://zoomquiet.org > > blog@ http://blog.zoomquiet.org/pyblosxom/ > > wiki在http://wiki.woodpecker.org.cn/moin/ZoomQuiet > > scrap在http://floss.zoomquiet.org > > douban在http://www.douban.com/people/zoomq/ > > ____________________________________ > > Pls. use OpenOffice.org to replace M$ Office. > > http://zh.openoffice.org > > Pls. use 7-zip to replace WinRAR/WinZip. > > http://7-zip.org/zh-cn/ > > You can get the truely Freedom 4 software. > > ''' > > _______________________________________________ > > 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 > > > > _______________________________________________ > 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 > -- Guo Jinpeng Mobile:86-13811168737 Room430,Building 45 jia,Peking University BeiJing 100871 -------------- 下一部分 -------------- Ò»¸öHTML¸½¼þ±»ÒƳý... URL: http://python.cn/pipermail/python-chinese/attachments/20070308/e2d321fd/attachment.html
2007年03月08日 星期四 10:20
ÎÒÒÔÇ°ÓõľÍÊÇmmap, ¹À¼ÆÄÜÂú×ãÄãµÄÒªÇó. Äã¿ÉÒÔÓÃtimeit ²âÊÔÒ»ÏÂÐÔÄÜ. ÔÚ07-3-8£¬mmx <mmxpeng在gmail.com> дµÀ£º > > Ö±½Ócopyµ½/dev/shm ÏÂÃæ¾ÍÐУ¬È»ºóÄǸö³ÌÐòµ½shmĿ¼ÏÂÈ¥¶Á > µ«ÊÇ£¬¶ÏµçµÄ»°£¬Õâ¸öÎļþ¿É¾ÍûÀ²¡£¡£ > > > On 3/8/07, leopay <leopay在gmail.com> wrote: > > > ÎÒÕâÑùÀí½âÊDz»ÊǶԵģ¿ > > ½«ÄǸöÎļþreadºó´æÔÚ/dev/shm/Ŀ¼ÏÂ,È»ºóÄǸö³ÌÐòÖ±½Ó¶ÁshmĿ¼ÏµÄÎļþ¡£ > > > > > > ÔÚ07-3-8£¬Zoom. Quiet <zoom.quiet在gmail.com > дµÀ£º > > > > > > On 3/8/07, leopay < leopay在gmail.com> wrote: > > > > ¹Ø¼üÊÇÔõôÎļþ¶Áµ½ÄÚ´æºó£¬ÔõôÔÙ°ÑÕâ¿éÄÚ´æÓ³ÉäΪһ¸öÎļþ£¬ÒòΪÄǸö¶ÁÎļþµÄ³ÌÐòÊDz»ÄÜÐ޸ĵġ£ÎÒÕâ±ßÖ»ÄܸøËüÖ¸¶¨¶ÁÄǸöÒ»¸öÎļþÃû > > > > > > > ±ð°ÉÎļþÏëµÄºÍÄÚ´æÓв²»Í¬£¬¶¼ÊǶþ½øÖÆ×Ö´®¶øÒÑ£¬ > > > ÔÚPy ÖУ¬Ö±½Óд³ö¾ÍºÃµÄ > > > > > > > > ÔÚ07-3-8£¬shhgs < shhgs.efhilt在gmail.com> дµÀ£º > > > > > cStringIO, StringIO > > > > > > > > > > ´ËÍ⣬ֱ½Ó°ÑÎļþ¶Á½ølist£¬»òÕßstringÒ²ÐС£ÕâЩ¶¼ÊÇPy first > > > > classµÄ¶ÔÏó¡£Ö±½Ó¶¼·ÅÔÚÄÚ´æÀïÃ棬µÈÒªÊä³öÁË£¬ÔÙÍù»Øд¾ÍÊÇÁË¡£ > > > > > > > > > > PyµÄIO»¹ÊÇ¿ÉÒԵģ¬¾ø´ó¶àÊýÇé¿öÏÂÓò»×Å×÷ÌرðµÄÓÅ»¯¡£ > > > > > > > > > > > > > > > > > > > > On 3/7/07, tocer <tocer.deng在gmail.com > wrote: > > > > > > ¿´¿´ mmap Ä£¿é£¬ÊDz»ÊÇÄãÒªµÄ > > > > > > > > > > > > leopay wrote:: > > > > > > > ÓÐÒ»¸ö³ÌÐòÒª¾³£¶Áµ½Ò»¸öÎļþ£¬ÎªÁËÌá¸ßЧÂÊ¡£ÎÒ´òË㽫¸ÃÎļþ¶Áµ½ÄÚ´æÖУ¬ > > > > > > > ÔÙ½«Õâ¿éÄÚ´æÓ³ÉäΪÎļþ¡£ÇëÎÊÕâ¸öÓÃpytohnÔõôÀ´ÊµÏÖ£¬ÒªÓõ½ÄÇЩmodule£¿ > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------ > > > > > > > > > > > > > > _______________________________________________ > > > > > > > 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 > > > > > > > > > > > > -- > > > > > > Vim ÖÐÎÄ Google ÂÛ̳ http://groups.google.com/group/Vim-cn > > > > > > _______________________________________________ > > > > > > 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 > > > > > _______________________________________________ > > > > > 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 > > > > > > > > > > > > _______________________________________________ > > > > 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 > > > > > > > > > > > > > -- > > > '''Time is unimportant, only life important! > > > http://zoomquiet.org > > > blog@ http://blog.zoomquiet.org/pyblosxom/ > > > wiki在http://wiki.woodpecker.org.cn/moin/ZoomQuiet > > > scrap在http://floss.zoomquiet.org > > > douban@ http://www.douban.com/people/zoomq/ > > > ____________________________________ > > > Pls. use OpenOffice.org to replace M$ Office. > > > http://zh.openoffice.org > > > Pls. use 7-zip to replace WinRAR/WinZip. > > > http://7-zip.org/zh-cn/ > > > You can get the truely Freedom 4 software. > > > ''' > > > _______________________________________________ > > > 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 > > > > > > > > _______________________________________________ > > 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 > > > > > > -- > Guo Jinpeng > Mobile:86-13811168737 > Room430,Building 45 jia,Peking University > BeiJing 100871 > > _______________________________________________ > 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 > -- powered by python -------------- 下一部分 -------------- Ò»¸öHTML¸½¼þ±»ÒƳý... URL: http://python.cn/pipermail/python-chinese/attachments/20070308/b8ee5a2d/attachment.html
2007年03月08日 星期四 10:22
copy µ½shmĿ¼Ï£¬¾ÍÊÇдµ½ÄÚ´æÖÐÈ¥ÁËÂ𣿠ÔÚ07-3-8£¬mmx <mmxpeng在gmail.com> дµÀ£º > > Ö±½Ócopyµ½/dev/shm ÏÂÃæ¾ÍÐУ¬È»ºóÄǸö³ÌÐòµ½shmĿ¼ÏÂÈ¥¶Á > µ«ÊÇ£¬¶ÏµçµÄ»°£¬Õâ¸öÎļþ¿É¾ÍûÀ²¡£¡£ > > > On 3/8/07, leopay <leopay在gmail.com> wrote: > > > ÎÒÕâÑùÀí½âÊDz»ÊǶԵģ¿ > > ½«ÄǸöÎļþreadºó´æÔÚ/dev/shm/Ŀ¼ÏÂ,È»ºóÄǸö³ÌÐòÖ±½Ó¶ÁshmĿ¼ÏµÄÎļþ¡£ > > > > > > ÔÚ07-3-8£¬Zoom. Quiet <zoom.quiet在gmail.com > дµÀ£º > > > > > > On 3/8/07, leopay < leopay在gmail.com> wrote: > > > > ¹Ø¼üÊÇÔõôÎļþ¶Áµ½ÄÚ´æºó£¬ÔõôÔÙ°ÑÕâ¿éÄÚ´æÓ³ÉäΪһ¸öÎļþ£¬ÒòΪÄǸö¶ÁÎļþµÄ³ÌÐòÊDz»ÄÜÐ޸ĵġ£ÎÒÕâ±ßÖ»ÄܸøËüÖ¸¶¨¶ÁÄǸöÒ»¸öÎļþÃû > > > > > > > ±ð°ÉÎļþÏëµÄºÍÄÚ´æÓв²»Í¬£¬¶¼ÊǶþ½øÖÆ×Ö´®¶øÒÑ£¬ > > > ÔÚPy ÖУ¬Ö±½Óд³ö¾ÍºÃµÄ > > > > > > > > ÔÚ07-3-8£¬shhgs < shhgs.efhilt在gmail.com> дµÀ£º > > > > > cStringIO, StringIO > > > > > > > > > > ´ËÍ⣬ֱ½Ó°ÑÎļþ¶Á½ølist£¬»òÕßstringÒ²ÐС£ÕâЩ¶¼ÊÇPy first > > > > classµÄ¶ÔÏó¡£Ö±½Ó¶¼·ÅÔÚÄÚ´æÀïÃ棬µÈÒªÊä³öÁË£¬ÔÙÍù»Øд¾ÍÊÇÁË¡£ > > > > > > > > > > PyµÄIO»¹ÊÇ¿ÉÒԵģ¬¾ø´ó¶àÊýÇé¿öÏÂÓò»×Å×÷ÌرðµÄÓÅ»¯¡£ > > > > > > > > > > > > > > > > > > > > On 3/7/07, tocer <tocer.deng在gmail.com > wrote: > > > > > > ¿´¿´ mmap Ä£¿é£¬ÊDz»ÊÇÄãÒªµÄ > > > > > > > > > > > > leopay wrote:: > > > > > > > ÓÐÒ»¸ö³ÌÐòÒª¾³£¶Áµ½Ò»¸öÎļþ£¬ÎªÁËÌá¸ßЧÂÊ¡£ÎÒ´òË㽫¸ÃÎļþ¶Áµ½ÄÚ´æÖУ¬ > > > > > > > ÔÙ½«Õâ¿éÄÚ´æÓ³ÉäΪÎļþ¡£ÇëÎÊÕâ¸öÓÃpytohnÔõôÀ´ÊµÏÖ£¬ÒªÓõ½ÄÇЩmodule£¿ > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------ > > > > > > > > > > > > > > _______________________________________________ > > > > > > > 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 > > > > > > > > > > > > -- > > > > > > Vim ÖÐÎÄ Google ÂÛ̳ http://groups.google.com/group/Vim-cn > > > > > > _______________________________________________ > > > > > > 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 > > > > > _______________________________________________ > > > > > 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 > > > > > > > > > > > > _______________________________________________ > > > > 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 > > > > > > > > > > > > > -- > > > '''Time is unimportant, only life important! > > > http://zoomquiet.org > > > blog@ http://blog.zoomquiet.org/pyblosxom/ > > > wiki在http://wiki.woodpecker.org.cn/moin/ZoomQuiet > > > scrap在http://floss.zoomquiet.org > > > douban@ http://www.douban.com/people/zoomq/ > > > ____________________________________ > > > Pls. use OpenOffice.org to replace M$ Office. > > > http://zh.openoffice.org > > > Pls. use 7-zip to replace WinRAR/WinZip. > > > http://7-zip.org/zh-cn/ > > > You can get the truely Freedom 4 software. > > > ''' > > > _______________________________________________ > > > 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 > > > > > > > > _______________________________________________ > > 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 > > > > > > -- > Guo Jinpeng > Mobile:86-13811168737 > Room430,Building 45 jia,Peking University > BeiJing 100871 > > _______________________________________________ > 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/20070308/1f081b11/attachment-0001.htm
2007年03月08日 星期四 11:28
google linux /dev/shm On 3/8/07, leopay <leopay在gmail.com> wrote: > > copy µ½shmĿ¼Ï£¬¾ÍÊÇдµ½ÄÚ´æÖÐÈ¥ÁËÂ𣿠> > ÔÚ07-3-8£¬mmx <mmxpeng在gmail.com> дµÀ£º > > > > Ö±½Ócopyµ½/dev/shm ÏÂÃæ¾ÍÐУ¬È»ºóÄǸö³ÌÐòµ½shmĿ¼ÏÂÈ¥¶Á > > µ«ÊÇ£¬¶ÏµçµÄ»°£¬Õâ¸öÎļþ¿É¾ÍûÀ²¡£¡£ > > > > > > On 3/8/07, leopay < leopay在gmail.com> wrote: > > > > > ÎÒÕâÑùÀí½âÊDz»ÊǶԵģ¿ > > > ½«ÄǸöÎļþreadºó´æÔÚ/dev/shm/Ŀ¼ÏÂ,È»ºóÄǸö³ÌÐòÖ±½Ó¶ÁshmĿ¼ÏµÄÎļþ¡£ > > > > > > > > > ÔÚ07-3-8£¬Zoom. Quiet <zoom.quiet在gmail.com > дµÀ£º > > > > > > > > On 3/8/07, leopay < leopay在gmail.com> wrote: > > > > > ¹Ø¼üÊÇÔõôÎļþ¶Áµ½ÄÚ´æºó£¬ÔõôÔÙ°ÑÕâ¿éÄÚ´æÓ³ÉäΪһ¸öÎļþ£¬ÒòΪÄǸö¶ÁÎļþµÄ³ÌÐòÊDz»ÄÜÐ޸ĵġ£ÎÒÕâ±ßÖ»ÄܸøËüÖ¸¶¨¶ÁÄǸöÒ»¸öÎļþÃû > > > > > > > > > ±ð°ÉÎļþÏëµÄºÍÄÚ´æÓв²»Í¬£¬¶¼ÊǶþ½øÖÆ×Ö´®¶øÒÑ£¬ > > > > ÔÚPy ÖУ¬Ö±½Óд³ö¾ÍºÃµÄ > > > > > > > > > > ÔÚ07-3-8£¬shhgs < shhgs.efhilt在gmail.com> дµÀ£º > > > > > > cStringIO, StringIO > > > > > > > > > > > > ´ËÍ⣬ֱ½Ó°ÑÎļþ¶Á½ølist£¬»òÕßstringÒ²ÐС£ÕâЩ¶¼ÊÇPy first > > > > > classµÄ¶ÔÏó¡£Ö±½Ó¶¼·ÅÔÚÄÚ´æÀïÃ棬µÈÒªÊä³öÁË£¬ÔÙÍù»Øд¾ÍÊÇÁË¡£ > > > > > > > > > > > > PyµÄIO»¹ÊÇ¿ÉÒԵģ¬¾ø´ó¶àÊýÇé¿öÏÂÓò»×Å×÷ÌرðµÄÓÅ»¯¡£ > > > > > > > > > > > > > > > > > > > > > > > > On 3/7/07, tocer <tocer.deng在gmail.com > wrote: > > > > > > > ¿´¿´ mmap Ä£¿é£¬ÊDz»ÊÇÄãÒªµÄ > > > > > > > > > > > > > > leopay wrote:: > > > > > > > > ÓÐÒ»¸ö³ÌÐòÒª¾³£¶Áµ½Ò»¸öÎļþ£¬ÎªÁËÌá¸ßЧÂÊ¡£ÎÒ´òË㽫¸ÃÎļþ¶Áµ½ÄÚ´æÖУ¬ > > > > > > > > ÔÙ½«Õâ¿éÄÚ´æÓ³ÉäΪÎļþ¡£ÇëÎÊÕâ¸öÓÃpytohnÔõôÀ´ÊµÏÖ£¬ÒªÓõ½ÄÇЩmodule£¿ > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------ > > > > > > > > > > > > > > > > _______________________________________________ > > > > > > > > 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 > > > > > > > > > > > > > > -- > > > > > > > Vim ÖÐÎÄ Google ÂÛ̳ http://groups.google.com/group/Vim-cn > > > > > > > _______________________________________________ > > > > > > > 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 > > > > > > _______________________________________________ > > > > > > 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 > > > > > > > > > > > > > > > _______________________________________________ > > > > > 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 > > > > > > > > > > > > > > > > > -- > > > > '''Time is unimportant, only life important! > > > > http://zoomquiet.org > > > > blog@ http://blog.zoomquiet.org/pyblosxom/ > > > > wiki在http://wiki.woodpecker.org.cn/moin/ZoomQuiet > > > > scrap在http://floss.zoomquiet.org > > > > douban@ http://www.douban.com/people/zoomq/ > > > > ____________________________________ > > > > Pls. use OpenOffice.org to replace M$ Office. > > > > http://zh.openoffice.org > > > > Pls. use 7-zip to replace WinRAR/WinZip. > > > > http://7-zip.org/zh-cn/ > > > > You can get the truely Freedom 4 software. > > > > ''' > > > > _______________________________________________ > > > > 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 > > > > > > > > > > > > _______________________________________________ > > > 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 > > > > > > > > > > > -- > > Guo Jinpeng > > Mobile:86-13811168737 > > Room430,Building 45 jia,Peking University > > BeiJing 100871 > > > > _______________________________________________ > > 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 > > > > > _______________________________________________ > 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 > -- Guo Jinpeng Mobile:86-13811168737 Room430,Building 45 jia,Peking University BeiJing 100871 -------------- 下一部分 -------------- Ò»¸öHTML¸½¼þ±»ÒƳý... URL: http://python.cn/pipermail/python-chinese/attachments/20070308/053ba203/attachment-0001.htm
2007年03月08日 星期四 14:12
这不是stringIO干的事么 s=f.read() from cStringIO import StrignIO strF=StringIO(s) strF.read() strF.write() 在07-3-8,leopay <leopay at gmail.com> 写道: > > 有一个程序要经常读到一个文件,为了提高效率。我打算将该文件读到内存中, > 再将这块内存映射为文件。请问这个用pytohn怎么来实现,要用到那些module? > > _______________________________________________ > python-chinese > Post: send python-chinese at lists.python.cn > Subscribe: send subscribe to python-chinese-request at lists.python.cn > Unsubscribe: send unsubscribe to python-chinese-request at lists.python.cn > Detail Info: http://python.cn/mailman/listinfo/python-chinese > -- devdoer devdoer at gmail.com http://devdoer.blog.sohu.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://python.cn/pipermail/python-chinese/attachments/20070308/c82637a9/attachment-0001.htm
2007年03月08日 星期四 14:13
你文件又不大,而且不要更新,stringIO足以 在07-3-8,bird devdoer <devdoer at gmail.com> 写道: > > 这不是stringIO干的事么 > s=f.read() > from cStringIO import StrignIO > strF=StringIO(s) > strF.read() > strF.write() > > 在07-3-8,leopay < leopay at gmail.com> 写道: > > > > 有一个程序要经常读到一个文件,为了提高效率。我打算将该文件读到内存中, > > 再将这块内存映射为文件。请问这个用pytohn怎么来实现,要用到那些module? > > > > _______________________________________________ > > python-chinese > > Post: send python-chinese at lists.python.cn > > Subscribe: send subscribe to python-chinese-request at lists.python.cn > > Unsubscribe: send unsubscribe to > > python-chinese-request at lists.python.cn > > Detail Info: http://python.cn/mailman/listinfo/python-chinese > > > > > > -- > devdoer > devdoer at gmail.com > http://devdoer.blog.sohu.com/ -- devdoer devdoer at gmail.com http://devdoer.blog.sohu.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://python.cn/pipermail/python-chinese/attachments/20070308/ddd9cfff/attachment.html
Zeuux © 2025
京ICP备05028076号