Python论坛  - 讨论区

标题:[python-chinese] python中文问题

2006年02月12日 星期日 10:43

超群李 achilles.lee at gmail.com
Sun Feb 12 10:43:01 HKT 2006

python新手。
写了几个python程序,凡是在有中文的地方显示都有问题。python版本2.4.2
请大家指点

--
李超群
mobile phone:13759961869
office phone:029-87607341
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060211/7c19a053/attachment.htm

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

2006年02月12日 星期日 10:47

Feng min feng.tank at gmail.com
Sun Feb 12 10:47:49 HKT 2006

在文件第一行加上以下代码试试:
# -*- coding:gb2312 -*-


On 2/12/06, 超群李 <achilles.lee at gmail.com> wrote:
>
> python新手。
> 写了几个python程序,凡是在有中文的地方显示都有问题。python版本2.4.2
> 请大家指点
>
> --
> 李超群
> mobile phone:13759961869
> office phone:029-87607341
>
> _______________________________________________
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060212/ccdf4425/attachment.html

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

2006年02月12日 星期日 11:36

超群李 achilles.lee at gmail.com
Sun Feb 12 11:36:08 HKT 2006

thanks.It solved the problem.

On 2/11/06, Feng min <feng.tank at gmail.com> wrote:
>
> 在文件第一行加上以下代码试试:
> # -*- coding:gb2312 -*-
>
>
> On 2/12/06, 超群李 <achilles.lee at gmail.com> wrote:
>
> > python新手。
> > 写了几个python程序,凡是在有中文的地方显示都有问题。python版本2.4.2
> > 请大家指点
> >
> > --
> > 李超群
> > mobile phone:13759961869
> > office phone:029-87607341
> >
> > _______________________________________________
> > 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
> >
> >
>
> _______________________________________________
> 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
>
>


--
李超群
mobile phone:13759961869
office phone:029-87607341
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060211/6630a6b0/attachment.htm

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

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

    你的回复:

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

    Zeuux © 2025

    京ICP备05028076号