2006年04月12日 星期三 18:27
在 06-4-11,anti403<anti403 at gmail.com> 写道: > 用openoffice 转了一个PDF,自动生成了书签,放在http://lit40.5u6.net > ,文件名为diveintopython_zhcn_pdf.zip 有需要的可以去下。 > tips:转pdf时,选中"tagged PDF",就有书签了。 > PS:用的openoffice是portable_openoffice_2.0.2_en-us ,字体换成宋体了。 > 不错嘛,刚要上传前一份,有标签的就出来了,呵呵,大家下这个吧,谢谢了 -- 云电清华同方小民工
2006年04月12日 星期三 18:51
汗。。。。上面还有个"美女走光偷拍" On 4/12/06, 笨笨狗 <chen.ruijie at gmail.com> wrote: > > 在 06-4-11,anti403<anti403 at gmail.com> 写道: > > 用openoffice 转了一个PDF,自动生成了书签,放在http://lit40.5u6.net > > ,文件名为diveintopython_zhcn_pdf.zip 有需要的可以去下。 > > tips:转pdf时,选中"tagged PDF",就有书签了。 > > PS:用的openoffice是portable_openoffice_2.0.2_en-us ,字体换成宋体了。 > > > > > 不错嘛,刚要上传前一份,有标签的就出来了,呵呵,大家下这个吧,谢谢了 > > -- > 云电清华同方小民工 > > _______________________________________________ > 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/20060412/e6538e2b/attachment.html
2006年04月13日 星期四 09:38
On 4/12/06, Cyril_Gmail <terry6394 at gmail.com> wrote: > 汗。。。。上面还有个"美女走光偷拍" 这是网站的广告~~不要上当~~ > On 4/12/06, 笨笨狗 <chen.ruijie at gmail.com> wrote: > > > 在 06-4-11,anti403<anti403 at gmail.com> 写道: > > 用openoffice 转了一个PDF,自动生成了书签,放在http://lit40.5u6.net > > ,文件名为diveintopython_zhcn_pdf.zip 有需要的可以去下。 > > tips:转pdf时,选中"tagged PDF",就有书签了。 > > PS:用的openoffice是portable_openoffice_2.0.2_en-us ,字体换成宋体了。 > > > > > 不错嘛,刚要上传前一份,有标签的就出来了,呵呵,大家下这个吧,谢谢了 > > -- > 云电清华同方小民工 > > _______________________________________________ > 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 > >
2006年04月28日 星期五 00:33
如果有u'\xa0'还有\u5b66\u751f\u505524d\uff0c\u5317\66\u751f\u5fd7\u6 这些内容怎么办?? 我就是解决不了这个问题。 提示是:exceptions.UnicodeEncodeError:'gbk' codec can't encode character u'\xa0' in position 875: illegal multibyte sequence 2006/4/8, Steven Wang (:) <zdwang at xinces.com>: > > 这个问题,我是在做DOM的时候发现的,我用的是PyXML-0.8.4, 代码如下: > > from xml.dom.ext.reader import HtmlLib > doc = HtmlLib.FromHtmlUrl(' > http://stock.business.sohu.com/q/nbcg.php?code=600028') > title_elem = doc.documentElement.getElementsByTagName("TITLE")[0] > title_string = title_elem.firstChild.data > print title_string # title_string 的内容就是s的内容,属于ygao所说的情况 > > > > ----- Original Message ----- > *From:* ygao <ygao2004 at gmail.com> > *To:* python-chinese at lists.python.cn > *Sent:* Friday, April 07, 2006 10:34 PM > *Subject:* Re: [python-chinese] 一个编码问题? > > > 这个问题非常有趣,把一段数据流错误地弄成UNICODE。但数据流的值却是正常的。 > 我们要还原:以下的过程有一个技巧。 > > >>> import re > >>> uni= re.compile(r"u'(.*?)'") > >>> d=repr(s) > >>> dd=uni.match(d) > >>> cc=dd.group(1) > >>> cc > '\\xd6\\xd0\\xb9\\xfa\\xca\\xaf\\xbb\\xaf(600028) : \\xc4\\xda\\xb2\\xbf\\xc8\\xcb\\xd4\\xb1\\xb3\\xd6\\xb9\\xc9 > - \\xcb\\xd1\\xba\\xfc\\xb9\\xc9\\xc6\\xb1' > >>> print cc.decode("string-escape").decode("gb2312") > 中国石化(600028) : 内部人员持股 - 搜狐股票 > >>> print cc.decode("string-escape").decode("gb18030") > 中国石化(600028) : 内部人员持股 - 搜狐股票 > >>> > > > > On 4/7/06, 员旭鹏 <recordus at gmail.com> wrote: > > > > 同样期待有人能给出解决方法 > > > > 2006/4/7, Steven Wang (:) <zdwang at xinces.com>: > > > > > s的内容是:中国石化(600028) : 内部人员持股 - 搜狐股票 > > > > > > ----- Original Message ----- > > > *From:* ygao <ygao2004 at gmail.com> > > > *To:* python-chinese at lists.python.cn > > > *Sent:* Friday, April 07, 2006 6:43 PM > > > *Subject:* Re: [python-chinese] 一个编码问题? > > > > > > > > > 是如下的中文吗? > > > > > > 脰脨鹿煤脢炉禄炉(600028) : 脛脷虏驴脠脣脭卤鲁脰鹿脡 - 脣脩潞眉鹿脡脝卤 > > > > > > On 4/7/06, alcides yolan <xyolan at gmail.com> wrote: > > > > > > > > 持续关注,在用asp和php开发中遇到不少字符编码的问题,不知道python如何解决? > > > > > > > > On 4/7/06, Steven Wang (:) < zdwang at xinces.com> wrote: > > > > > > > > > 在解析XML文档的时候,得到s > > > > 的值如下,请问如何正确的,显示出中文?他标示的是Unicode,但是实际的内容确实gbk,请问该怎么办? > > > > > > > > s = u'\xd6\xd0\xb9\xfa\xca\xaf\xbb\xaf(600028) : > > > > \xc4\xda\xb2\xbf\xc8\xcb\xd4\xb1\xb3\xd6\xb9\xc9 - > > > > \xcb\xd1\xba\xfc\xb9\xc9\xc6\xb1' > > > > > > > > > > > > > > > > _______________________________________________ > > > > 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 > > > > > > > > > > > > > > > > > -- > > > ※※※※※※※※※※※※※※※※※※※※※※※※ > > > My blog: http://blog.donews.com/ygao > > > Forum http://groups.google.com/group/python_study > > > ※※※※※※※※※※※※※※※※※※※※※※※※ > > > > > > ------------------------------ > > > > > > _______________________________________________ > > > 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 > > > > > > > > > > > > -- > > I like Python & Linux. > > > > _______________________________________________ > > 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 > > > > > > > -- > ※※※※※※※※※※※※※※※※※※※※※※※※ > My blog: http://blog.donews.com/ygao > Forum http://groups.google.com/group/python_study > ※※※※※※※※※※※※※※※※※※※※※※※※ > > ------------------------------ > > _______________________________________________ > 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 > > -- 谢小漫 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060428/1e9a17f4/attachment-0001.html
Zeuux © 2025
京ICP备05028076号