Python论坛  - 讨论区

标题:[python-chinese] (no subject)

2004年03月11日 星期四 11:14

zhao bear_sh at eastday.com
Thu Mar 11 11:14:33 HKT 2004

0.706,您好!

   把pz.txt发个过来,我来试一试

======= 2004-03-11 10:57:05 您在来信中写道:=======

>大家好!
>
>	 应该是unicode,那应该如何?
>
>======= 2004-03-11 10:52:07 您在来信中写道:=======
>
>>0.706,您好!
>>
>>	是编码的问题吧。
>>原先的文件是什么编码?unicode
>>
>>======= 2004-03-11 10:47:37 您在来信中写道:=======
>>
>>>Jacob Fan,您好!
>>>
>>>	没有报告错误,但是生成的结果文件不对,pt.txt有360k,
>>>生成的ptz.txt只有1K,而且有乱码.
>>>
>>>======= 2004-03-11 10:35:00 您在来信中写道:=======
>>>
>>>>-----Original Message-----
>>>>From: 0.706 [mailto:0.706 at 163.com] 
>>>>Sent: 2004年3月11日 10:34
>>>>To: python-chinese
>>>>Subject: [python-chinese] (no subject)
>>>>
>>>>
>>>>>python-chinese,您好!
>>>>
>>>>>	请大家帮忙看看我的下述程序有什么问题,pt.txt是用
>>>>>win2000的输入法生成器产生的输入法源文件,我想对其进行处
>>>>>理后生成新的文件。可是现在连复制也做不到.
>>>>># -*- coding: cp936 -*-
>>>>>oldfile=file("pt.txt","r")
>>>>>newfile=file("ptz.txt","w")
>>>>
>>>>>lines=oldfile.readlines()
>>>>
>>>>>for line in lines:
>>>>>    newfile.write(line)
>>>>>oldfile.close()
>>>>>newfile.close()
>>>>
>>>>错在哪里?
>>>>_______________________________________________
>>>>python-chinese list
>>>>python-chinese at lists.python.cn
>>>>http://python.cn/mailman/listinfo/python-chinese
>>>
>>>= = = = = = = = = = = = = = = = = = = =
>>>			
>>>
>>>        致
>>>礼!
>>> 
>>>				 
>>>        0.706
>>>        0.706 at 163.com
>>>          2004-03-11
>>>
>>>_______________________________________________
>>>python-chinese list
>>>python-chinese at lists.python.cn
>>>http://python.cn/mailman/listinfo/python-chinese
>>
>>= = = = = = = = = = = = = = = = = = = =
>>			
>>
>>        致
>>礼!
>> 
>>				 
>>        zhao
>>        bear_sh at eastday.com
>>          2004-03-11
>>
>>_______________________________________________
>>python-chinese list
>>python-chinese at lists.python.cn
>>http://python.cn/mailman/listinfo/python-chinese
>
>= = = = = = = = = = = = = = = = = = = =
>			
>
>        致
>礼!
> 
>				 
>        0.706
>        0.706 at 163.com
>          2004-03-11
>
>_______________________________________________
>python-chinese list
>python-chinese at lists.python.cn
>http://python.cn/mailman/listinfo/python-chinese

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

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

-------------- 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/20040311/eb4fdf42/fox.gif

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

2004年03月11日 星期四 11:23

fxg ifxg at tom.com
Thu Mar 11 11:23:19 HKT 2004

Python的web应用程序怎么写?谁能告诉我一个大概的情况?流程或者步骤,能取代J2EE为最终目的。

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

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

    你的回复:

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

    Zeuux © 2024

    京ICP备05028076号