##language:zh #pragma section-numbers off ##含有章节索引导航的 ZPyUG 文章通用模板 <> ## 默许导航,请保留 <> = 多行注释编码问题 = ##startInc == 现象 == 2008/11/18 yangyi : {{{ > 在python中大家是如何使用多行注释和中文注释的。比如C语言中的 > /* > int a > int b > */ > > 还有注释中用中文就报错,大家遇到过这种情况吗? }}} == 应对 == {{{ 马踏飞燕 reply-to python-cn@googlegroups.com to python-cn@googlegroups.com date Wed, Nov 19, 2008 at 09:47 subject [CPyUG:71721] Re: python注释问题 }}} 多行中文注释可以直接指定unicode。 {{{ u""" 中俄文 中俄文 中俄文 中俄文 """ }}} 这样就不会出错了。 ##endInc ---- '''反馈''' 创建 by -- ZoomQuiet [<>]