2006年04月07日 星期五 16:21
邮件里面为什么总有乱码?? 是哪的问题?? On 4/7/06, python-chinese-request at lists.python.cn <python-chinese-request at lists.python.cn> wrote: > Send python-chinese mailing list submissions to > python-chinese at lists.python.cn > > To subscribe or unsubscribe via the World Wide Web, visit > http://python.cn/mailman/listinfo/python-chinese > or, via email, send a message with subject or body 'help' to > python-chinese-request at lists.python.cn > > You can reach the person managing the list at > python-chinese-owner at lists.python.cn > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of python-chinese digest..." > > > Today's Topics: > > 1. ???????gmail?blog?python???????????? (boyeestudio) > 2. Re: ???????gmail?blog?python???????????? ( ?? ) > 3. Re: ???????gmail?blog?python???????????? (Zoom Quiet) > 4. ??HTML?DOM? (Steven Wang ???) > 5. Re: c?python?? (Gerald Lee) > 6. Re: python-chinese Digest, Vol 28, Issue 49 (hydon) > 7. Re: Re: [python-chinese] ???????? (Qutr) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Fri, 7 Apr 2006 13:42:49 +0800 > From: boyeestudio <boyee118 at gmail.com> > Subject: [python-chinese] ???????gmail?blog?python???????????? > To: python-chinese at lists.python.cn > Message-ID: > <d2d5d61d0604062242w9107543vb0994aec61d3a17f at mail.gmail.com> > Content-Type: text/plain; charset="gb2312" > > 上次听说有个将gmail变blog的python项目,在哪啊?能用了吗? > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060407/f73b4fe7/attachment-0001.htm > > ------------------------------ > > Message: 2 > Date: Fri, 7 Apr 2006 13:45:42 +0800 > From: " ?? " <paradise.qingfeng at gmail.com> > Subject: Re: [python-chinese] ???????gmail?blog?python???????????? > To: python-chinese at lists.python.cn > Message-ID: > <3ef598910604062245y33a18f50vda85e3665b15f914 at mail.gmail.com> > Content-Type: text/plain; charset=GB2312 > > 惭愧惭愧,一直没有进行。。。目前的代码可以把gmail中某一个label的信件转成rss而已。。。 > > http://wiki.woodpecker.org.cn/moin/PyGList > > 代码 > http://cvs.woodpecker.org.cn/trac/browser/PyGList/ > > On 4/7/06, boyeestudio <boyee118 at gmail.com> wrote: > > > > 上次听说有个将gmail变blog的python项目,在哪啊?能用了吗? > > _______________________________________________ > > 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 > > > > > > > -- > 我的播客:http://www.uzhi.net/m/qingfeng/ > Blog:http://qingfeng.ushared.com/blog/ > > ------------------------------ > > Message: 3 > Date: Fri, 7 Apr 2006 14:10:50 +0800 > From: "Zoom Quiet" <zoom.quiet at gmail.com> > Subject: Re: [python-chinese] ???????gmail?blog?python???????????? > To: python-chinese at lists.python.cn > Message-ID: > <9dad9f0a0604062310n56bfbec0q4393c3e2c1f5952 at mail.gmail.com> > Content-Type: text/plain; charset=UTF-8 > > On 4/7/06, 娓呴 <paradise.qingfeng at gmail.com> wrote: > > 鎯劎鎯劎锛屼竴鐩存病鏈夎繘琛屻€傘€傘€傜洰鍓嶇殑浠g爜鍙互鎶奼mail涓煇涓€涓猯abel鐨勪俊浠惰浆鎴恟ss鑰屽凡銆傘€傘€�> > > http://wiki.woodpecker.org.cn/moin/PyGList > > > > 浠g爜 > > http://cvs.woodpecker.org.cn/trac/browser/PyGList/ > > > 鍘熷鐨勬潵婧愰」鐩槸: > http://ion.gluch.org.mx/files/Hacks/gallina/ > 涔熸湁涓枃鐨勭増鏈€︹€︹€︹€W鍏勫紵鏁寸殑鈥︹€︹€︹€� > > On 4/7/06, boyeestudio <boyee118 at gmail.com> wrote: > > > > > > 涓婃鍚鏈変釜灏唃mail鍙榖log鐨刾ython椤圭洰锛屽湪鍝晩锛熻兘鐢ㄤ簡鍚楋紵 > > > _______________________________________________ > > > 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 > > > > > > > > > > > > -- > > 鎴戠殑鎾锛歨ttp://www.uzhi.net/m/qingfeng/ > > Blog:http://qingfeng.ushared.com/blog/ > > > > _______________________________________________ > > 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 > > > > > > > -- > """Time is unimportant, only life important! > blogging : http://blog.zoomquiet.org/pyblosxom/ > wiki enter: http://wiki.woodpecker.org.cn/moin/ZoomQuiet > in douban: http://www.douban.com/people/zoomq/ > """ > > ------------------------------ > > Message: 4 > Date: Fri, 7 Apr 2006 14:17:31 +0800 > From: Steven Wang ??? <zdwang at xinces.com> > Subject: [python-chinese] ??HTML?DOM? > To: Steven Wang ??? <zdwang at xinces.com>, > <python-chinese at lists.python.cn> > Message-ID: <017701c65a0a$f43e8a70$e643eadc at xincesserver> > Content-Type: text/plain; charset="gb2312" > > 找到了答案,但是,处理中文好像有些问题。from xml.dom.ext.reader import HtmlLib > > #Create an HTML reader object > reader = HtmlLib.Reader() > #Create a 4DOM document node parsed from HTML at a URL > doc_node = reader.fromUri("http://www.python.org") > > #Get the title of the HTML document > title_elem = doc_node.documentElement.getElementsByTagName("TITLE")[0] > #title_string becomes "Python Language Website" > title_string = title_elem.firstChild.data----- Original Message ----- > From: Steven Wang (:) > To: python-chinese at lists.python.cn > Sent: Friday, April 07, 2006 11:43 AM > Subject: [python-chinese] 有没有哪为用过 libxml2dom ? > > > 建立HTML的DOM树, 我看到这个(http://www.boddie.org.uk/python/HTML.html)文章,有没有朋友研究过?代码好像有问题? > > Steven Wang > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > 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/20060407/c3ecf021/attachment-0001.html > > ------------------------------ > > Message: 5 > Date: Fri, 7 Apr 2006 14:19:17 +0800 > From: "Gerald Lee" <leejd80 at gmail.com> > Subject: Re: [python-chinese] c?python?? > To: python-chinese at lists.python.cn > Message-ID: > <7dbf822f0604062319h64655412x4e939984cac387c5 at mail.gmail.com> > Content-Type: text/plain; charset="gb2312" > > 你要的是不是这样的结果? > > PyObject *pCall, *pFile; > pCall = PyImport_ImportModule("cPickle"); > if (!pCall) > return false; > pFile = PyFile_FromString((char*)FileName.data(), "wb"); > if (!pFile) > return false; > pResult = PyObject_CallMethod(pCall, "dump", "OOi", pScanData, pFile, > -1); > Py_DECREF(pFile); > if (!pResult) > return false; > > > 在06-4-7,吴俊玉 <wujunyu at gmail.com> 写道: > > > > 说的没错哦 > > 但如果我就要这个python对象该怎么办呢? > > 我就要从python直接传个对象过来该怎么做呢? > > > > _______________________________________________ > > 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://leejd.cndev.org > My QQ >> 9847243 > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060407/f3b5ef6a/attachment-0001.htm > > ------------------------------ > > Message: 6 > Date: Fri, 7 Apr 2006 14:30:04 +0800 > From: hydon <hydonlee at gmail.com> > Subject: [python-chinese] Re: python-chinese Digest, Vol 28, Issue 49 > To: python-chinese at lists.python.cn > Message-ID: > <3bc65bab0604062330q696edeecm909a66723f00108b at mail.gmail.com> > Content-Type: text/plain; charset=GB2312 > > Dear ALL, > > 今天在看"Dive Into > Python"在线中文版(http://www.woodpecker.org.cn/obp/diveintopython-zh-5.4/zh-cn/dist/html/index.html)。发现有一处翻译错误,不知道如何联系,发到这里,请有参与翻译的人联系相关人等修改。 > > 在介绍List中的"例 3.9. Slice > 简写"(http://www.woodpecker.org.cn/obp/diveintopython-zh-5.4/zh-cn/dist/html/native_data_types/lists.html#id2593713), > 有这样的描述:" 请注意这里的对称性。在这个包含 5 个元素的 list 中, li[3:] 返回前 3 个元素, 而 li[:3] > 返回后 2 个元素。实际上, li[n:] 总是返回前 n 个元素, 而 li[:n] 将返回剩下的元素, 不管 list 有多长。 > "。这明显是错误的。应该是li[:3]返回前3个元素,而li[3:]返回后2个元素(后边的li[n:]与li[:n]也同样). > > 参考英文版中,相同的内容却是正确的:"Note the symmetry here. In this five-element > list, li[:3] returns the first 3 elements, and li[3:] returns the last > two elements. In fact, li[:n] will always return the first n elements, > and li[n:] will return the rest, regardless of the length of the list. > " > > That's ALL. > Hydon > > ------------------------------ > > Message: 7 > Date: Fri, 7 Apr 2006 15:05:38 +0800 > From: "Qutr" <qutianrang at gmail.com> > Subject: Re: Re: [python-chinese] ???????? > To: "python-chinese" <python-chinese at lists.python.cn> > Message-ID: <DreamMail__150538_56265566864 at smtp.gmail.com> > Content-Type: text/plain; charset="gb2312" > > 学了一年的Python了不知道什么是NewEdit,可见不是经常用搜索引擎阿!呵呵! > > > Qutr,qutianrang at gmail.com > 2006-4-7 > ----- 收到以下来信内容 ----- > 发件人: 小马 > 收件人: python-chinese > 时 间: 2006-04-05, 12:51:34 > 主 题: Re: [python-chinese] 下来我该做什么? > > > 谢谢大伙啦。Du Jun 什么是NewEdit啊? > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060407/795ac02d/attachment.html > > ------------------------------ > > _______________________________________________ > python-chinese mailing list > python-chinese at lists.python.cn > http://python.cn/mailman/listinfo/python-chinese > > End of python-chinese Digest, Vol 28, Issue 50 > ********************************************** >
Zeuux © 2025
京ICP备05028076号