2005年02月17日 星期四 20:03
发错地方了... 今后,啄木鸟的所有活动期望规范化,有效化起来, 毕竟凝聚了大家的劳动,怎么样也要有个成果,在中国的Python 应用范围内留下名气是也乎! ---------- Forwarded message ---------- From: Zoom Quiet <zoom.quiet at gmail.com> Date: Thu, 17 Feb 2005 19:45:14 +0800 Subject: Re: 周六例会开始 To: python-cn at googlegroups.com 补充: 将在 Skype 中进行, 请大家,在会课开始前通过列表,通告自个儿的 Skype 帐号, 以便到时候,及时加入语音会议,是也乎 另外,会课的恢复,不但是为了项目的开展, 重要的是建立 啄木鸟 的交流氛围,形成中国的 Python 应用前沿阵地是也乎! 为了,会课的有效性, 建议主要的发言者在 http://wiki.woodpecker.org.cn/moin.cgi/WoodpeckerClass 中先提供发言提纲,以便大家预习,有的放矢, 会课时间不会太长,建议两节课的时间 90分钟完成主要讨论, 如果讨论热烈的话,当然可以继续是也乎是也乎.... On Thu, 17 Feb 2005 18:45:51 +0800, limodou <limodou at gmail.com> wrote: > 定于本周六召开例会,将举行头脑风暴的讨论,主要议题: > > Zoomq 关于最近社区可能的发展变化陈述, Zqlib项目介绍及交流 > limodou 关于最近学习情况的交流,及可能的项目的安排及交流 > 如果其它人有需要交流的东西也请在会上一起交流 > > 时间定于本周六晚上7:00钟,具体的其它事宜将在邮件列表中宣布请大家注意收邮件。 > -- > I like python! > My Blog: http://www.donews.net/limodou > New Maillist: http://groups-beta.google.com/group/python-cn > -- [Time is unimportant, only life important!] -- [Time is unimportant, only life important!]
2005年02月17日 星期四 21:16
Hong Yuan,您好!
这是pythonWin解释器的编码的问题(不是python的编码问题),我觉得也没必要怎么去搞的怎么深入,
在解释器中直接用print就可以得到,使用示例:
>>> print "中文测试"
中文测试
>>> str = "中文测试"
>>> str
'\xd6\xd0\xce\xc4\xb2\xe2\xca\xd4'
>>> print '\xd6\xd0\xce\xc4\xb2\xe2\xca\xd4'
中文测试
>>>
======= 2005-02-17 16:27:23 您在来信中写道:=======
>关键是要把字符串转换成正确的(终端支持的)编码输出。如果是中文Windows下的
>命令行运行的,可以使用encode('mbcs'),如下面的小例子:
>
>#!/usr/bin/env python
># -*- coding: utf-8 -*-
>
>print "中文测试".encode('mbcs')
>
>
>ldj wrote:
>
>>python-chinese at lists.python.cn,您好!
>>
>> 我安装了ActivePython进行学习,编写了小程序,读取文件,然后在终端输出。但中文都变成“
>>\xa9\xa6”之类的字符。请指教!
>>
>> 致
>>礼!
>>
>>
>> ldj
>> hnsxldj at 163.com
>> 2005-02-17
>>
>>
>>------------------------------------------------------------------------
>>
>>_______________________________________________
>>python-chinese list
>>python-chinese at lists.python.cn
>>http://python.cn/mailman/listinfo/python-chinese
>>
>>
>
>--
>HONG Yuan
>Homemaster Trading Co., Ltd.
>No. 601, Bldg. 41, 288 Shuangyang Rd. (N)
>Shanghai 200433, P.R.C.
>Tel: +86 21 55056553
>Fax: +86 21 55067325
>E-mail: hongyuan at homemaster.cn
>
>_______________________________________________
>python-chinese list
>python-chinese at lists.python.cn
>http://python.cn/mailman/listinfo/python-chinese
>
= = = = = = = = = = = = = = = = = = = =
致
礼!
jian wang
wangjian5748 at 163.com
2005-02-17
Zeuux © 2025
京ICP备05028076号