2004年08月30日 星期一 08:53
Hollo Anew: =CA=D7=CF=C8=C4=E3=B5=C4aa.txt =BA=C3=CF=F3=CA=C7=B1=E0=C2=EB=D3=D0=CE=CA= =CC=E2=A3=BF=A3=BF=CA=B9=D3=C3EmEdite =B4=F2=BF=AA=CA=B1=D3=D0=B4=ED=CE=F3= =A3=A1 >>> s=3Dopen('aa.txt','r').read() >>> s "999999999999999999jjjjjjjjjj =01jjjjjjjjjjj999999999999999999 =0F=01 =01.write('999999999999999999') f.read() f.close()e()=C0=B7\x82\x00=C0=B7\x82\x00}8Q=EE=98| Python =B6=C1=D2=B2=D2=BB=D1=F9=A3=A1 =BA=C3=CF=F3=CA=C7=B4=F2=BF=AA=B5=C4=CE=C4=BC=FE=A3=AC=D2=D1=BE=AD=B3=C9= =CE=AA=D2=BB=B8=F6=B6=D4=CF=F3=B5=C4=B6=C0=D5=BC=D7=CA=D4=B4=A3=AC=B2=BB=C4= =DC=CB=E6=B1=E3=D0=B4=B5=C4=A3=BB=CE=D2=D2=B2=C3=BB=D3=D0=D4=DA Win2k3 =CF= =C2=B3=C9=B9=A6=A1=AD=A1=AD=A1=AD=A1=AD =D6=BB=C4=DC: [g:\zdevelop\zpython\@python-chinese\040830-opennread]python Python 2.3.4 (CJK/SJIS) (#53, May 27 2004, 05:49:12) [MSC v.1200 32 bit (In= tel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> s=3Dopen('bbb.txt','rw').write('99999999999999999999') Traceback (most recent call last): File "", line 1, in ? IOError: (0, 'Error') >>> s=3Dopen('bbb.txt','rw').read() >>> s 'aaaa' >>> open('cc.txt','w').write(s) None >>> open('cc.txt','w').write('9999999999999999') None >>> =C1=ED=D0=B4=B5=BD=D2=BB=B8=F6=CE=C4=BC=FE=D6=D0=A3=A1 =B5=AB=CA=C7=D5=E2=D1=F9=BE=CD=BF=C9=D2=D4=A3=BA >>> s=3Dopen('bbb.txt','r').read() >>> s 'aaaa' >>> open('bbb.txt','w').write('%s9999999999999999'%s) None >>> open('bbb.txt','r').read() 'aaaa9999999999999999' >>> =E0=C0=E0=C0=E0=C0=A3=A1=B6=E0=B3=A2=CA=D4=D2=BB=CF=C2=D7=D3=A3=AC=B9=DC=CB= =FC=D4=F5=C3=B4=BB=D8=CA=C2=B6=F9=C4=C4=A3=A1=BA=C3=D3=C3=BE=CD=B3=C9=A3=A1 /******** [2004-08-30]08:47:38 ; Anew wrote: Anew> python-chinese=A3=AC=C4=FA=BA=C3=A3=A1 Anew> =D2=BB=B6=CE=BA=DC=BC=F2=B5=A5=B5=C4=B4=FA=C2=EB=A3=BA Anew> aa.txt =C0=EF=C3=E6=CB=E6=B1=E3=B4=F2=D2=BB=D0=A9=B6=AB=CE=F7=A3=AC= =CE=D2=B5=C4aa.txt =C0=EF=BE=CD=CA=C7=BC=B8=B8=F6=D7=D6=C4=B8j Anew> f=3Dopen('d:/aa.txt','r+') Anew> f.write('999999999999999999') Anew> f.read() Anew> f.close() Anew> =D4=CB=D0=D0=BA=F3=B2=FA=C9=FA=C2=D2=C2=EB=A3=AC=CE=D2=B0=D1=B2=FA=C9= =FA=B5=C4=CE=C4=BC=FE=B7=C5=D4=DA=B8=BD=BC=FE=C0=EF=A1=A3=B2=BB=D6=AA=B5=C0= =B4=F3=BC=D2=D3=D0=C3=BB=D3=D0=D3=F6=B5=BD=B9=FD=D5=E2=C3=B4=C6=E6=B9=D6=B5= =C4=CE=CA=CC=E2=A3=BF Anew> =D4=DAWindows=CF=C2=D3=D0=CE=CA=CC=E2=A3=ACLinux=CF=C2=C3=BB=CE=CA=CC= =E2=A1=A3=A3=A8=D4=CE~~~ =A3=A9 Anew> =A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=D6=C2 Anew> =C0=F1=A3=A1 =09=09=09=09 Anew> =A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1Anew Anew> =A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1Anewboy at citiz.net Anew> =A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A12004-08-30 ********************************************/ --=20 Free as in Freedom Zoom.Quiet =20 #=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D# ]Time is unimportant, only life important![ #=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D# sender is the Bat!2.12.00
2004年08月30日 星期一 09:02
tocer,您好! 按照你的第一种方法成功了,不过我import time后,再换行继续输入time.没看到任何提示啊,不过输入到t的时候屏幕下面还是有一些不相干的提示的。 ======= 2004-08-28 15:06:43 您在来信中写道:======= >解决办法有三个: > 1、升级vim6.2---->6.3 > 2、降级python---->2.1 > 3、重新编译vim6.2源代码,使他能兼容你的python版本。不过这招我也不会:) > >这个脚本的功能简单说就是代码提示。 >----- Original Message ----- >From: "hoxide" <hoxide_dirac at yahoo.com.cn> >To: <python-chinese at lists.python.cn> >Sent: Saturday, August 28, 2004 2:34 PM >Subject: Re: [python-chinese] ANN:能够显示python calltips的VIM脚本(上次忘了带附件) > > >> tocer,您好! >> >> gvim6.2中不能用~~~,需要python2.1~~~, 这个pyfile到底是什么东西? >> >> ======= 2004-08-28 13:21:58 您在来信中写道:======= >> >> >版本:0.3 >> > >> >运行平台:linux ,windows,VIM >> > 我只在中文win2000+vim6.3中测试通过。别的平台,别的vim版本没有测试,如果也能通过,告诉我一声。 >> > >> >特性: >> > 1、在vim里编码的时候,可以随着你的输入,自动显示模块或者函数名称和用法,就像idle或者pywin里的calltips,不过我这个脚本还能显示用法和帮助。 >> > 2、只支持python语言。 >> > >> >用法: >> > 1、打开一个python文件,然后pyfile <路径>pyCallTips.py,如果没有报错,就能运行了,在python文件中import的模块和方法,都能够随着你的输入显示出来。支持内建函数,试着输入 dir 看看。或者放入vimrc文件中,自动运行。 >> > 2、如果新增import 或者 from 。。import语句,需要按刷新一下,这样才能显示出新增的模块和方法 >> > >> >如果有问题,在这里提出来,我会尽量回答的。如果好使,也说一声,让我也高兴高兴。_______________________________________________ >> >python-chinese list >> >python-chinese at lists.python.cn >> >http://python.cn/mailman/listinfo/python-chinese >> > >> >> = = = = = = = = = = = = = = = = = = = = >> >> >> 致 >> 礼! >> >> >> hoxide >> hoxide_dirac at yahoo.com.cn >> 2004-08-28 >> >> > > >-------------------------------------------------------------------------------- > > >> _______________________________________________ >> python-chinese list >> python-chinese at lists.python.cn >> http://python.cn/mailman/listinfo/python-chinese >> _______________________________________________ >python-chinese list >python-chinese at lists.python.cn >http://python.cn/mailman/listinfo/python-chinese > = = = = = = = = = = = = = = = = = = = = 致 礼! info info at xichen.com 2004-08-30
Zeuux © 2025
京ICP备05028076号