Python论坛  - 讨论区

标题:[python-chinese] 关于linux下的内存映射技术的python实现

2007年03月08日 星期四 09:01

leopay leopay在gmail.com
星期四 三月 8 09:01:47 HKT 2007

ÓÐÒ»¸ö³ÌÐòÒª¾­³£¶Áµ½Ò»¸öÎļþ£¬ÎªÁËÌá¸ßЧÂÊ¡£ÎÒ´òË㽫¸ÃÎļþ¶Áµ½ÄÚ´æÖУ¬
ÔÙ½«Õâ¿éÄÚ´æÓ³ÉäΪÎļþ¡£ÇëÎÊÕâ¸öÓÃpytohnÔõôÀ´ÊµÏÖ£¬ÒªÓõ½ÄÇЩmodule£¿
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20070308/ad3031de/attachment.htm 

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

2007年03月08日 星期四 09:15

tocer tocer.deng在gmail.com
星期四 三月 8 09:15:46 HKT 2007

看看 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

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

2007年03月08日 星期四 09:20

leopay leopay在gmail.com
星期四 三月 8 09:20:22 HKT 2007

¾ßÌåÔõôʵÏÖ»¹²»ÊÇÌ«Çå³þ£¬ÓÐûÓÐʲôԴÂë¿ÉÒԲο¼µÄ?

ÔÚ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 

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

2007年03月08日 星期四 09:20

shhgs shhgs.efhilt在gmail.com
星期四 三月 8 09:20:29 HKT 2007

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

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

2007年03月08日 星期四 09:29

Zoom.Quiet zoom.quiet在gmail.com
星期四 三月 8 09:29:00 HKT 2007

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.
'''

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

2007年03月08日 星期四 09:30

leopay leopay在gmail.com
星期四 三月 8 09:30:37 HKT 2007

¹Ø¼üÊÇÔõôÎļþ¶Áµ½ÄÚ´æºó£¬ÔõôÔÙ°ÑÕâ¿éÄÚ´æÓ³ÉäΪһ¸öÎļþ£¬ÒòΪÄǸö¶ÁÎļþµÄ³ÌÐòÊ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 

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

2007年03月08日 星期四 09:31

mmx mmxpeng在gmail.com
星期四 三月 8 09:31:13 HKT 2007

ºÜ´óô£¿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 

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

2007年03月08日 星期四 09:33

mmx mmxpeng在gmail.com
星期四 三月 8 09:33:41 HKT 2007

Ŷ£¬ÕâÑù°¡£¬ÄǾͷŵ½/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 

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

2007年03月08日 星期四 09:33

Zoom.Quiet zoom.quiet在gmail.com
星期四 三月 8 09:33:55 HKT 2007

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.
'''

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

2007年03月08日 星期四 09:35

leopay leopay在gmail.com
星期四 三月 8 09:35:18 HKT 2007

²»´ó£¬½ö½öÊÇΪÁËÌá¸ßЧÂÊ

ÔÚ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 

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

2007年03月08日 星期四 09:47

leopay leopay在gmail.com
星期四 三月 8 09:47:53 HKT 2007

ÎÒÕâÑùÀí½âÊ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 

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

2007年03月08日 星期四 10:06

mmx mmxpeng在gmail.com
星期四 三月 8 10:06:57 HKT 2007

Ö±½Ó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 

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

2007年03月08日 星期四 10:20

Alex Cheng chengxin1985在gmail.com
星期四 三月 8 10:20:21 HKT 2007

ÎÒÒÔÇ°ÓõľÍÊÇ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 

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

2007年03月08日 星期四 10:22

leopay leopay在gmail.com
星期四 三月 8 10:22:54 HKT 2007

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 

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

2007年03月08日 星期四 11:28

mmx mmxpeng在gmail.com
星期四 三月 8 11:28:49 HKT 2007

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 

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

2007年03月08日 星期四 14:12

bird devdoer devdoer在gmail.com
星期四 三月 8 14:12:29 HKT 2007

这不是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 

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

2007年03月08日 星期四 14:13

bird devdoer devdoer在gmail.com
星期四 三月 8 14:13:35 HKT 2007

你文件又不大,而且不要更新,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 

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

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

    你的回复:

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

    Zeuux © 2025

    京ICP备05028076号