## page was renamed from MiscItems/2009-03-14 ##language:zh #pragma section-numbers off ##含有章节索引导航的 ZPyUG 文章通用模板 <> ## 默许导航,请保留 <> = 找出所有中文 = ##startInc == php 的 == {{{ TualatriX reply-to python-cn@googlegroups.com to python-cn`CPyUG`华蟒用户组 date Fri, Mar 13, 2009 at 22:13 subject [CPyUG:81295] 如何用Python来输出所有汉字? }}} 看到一段PHP代码,很酷!把所有汉字都打印出来了,代码如下: http://www.phpweblog.net/fuyongjie/archive/2009/03/13/6384.html {{{ " ; } } $a .= ' "] ' ; print_r (json_decode( $a )); ?> }}} 不知道用Python要该如何实现?想来想去想不出来,所以请教大家。 == py 的 == {{{ 刘其帅 reply-to python-cn@googlegroups.com to python-cn@googlegroups.com date Fri, Mar 13, 2009 at 22:20 }}} {{{ >>> for ch in xrange(0x4e00, 0x9fa6): ... print unichr(ch) }}} ##endInc ---- '''反馈''' 创建 by -- ZoomQuiet [<>]