问题描述
我已经使用Python很长一段时间了,而且我有点难过。
它真的没有多行评论吗?我想我必须只是因为b $ b缺少一些简单而愚蠢的东西。
提前致谢。
Doug Tolton
I''ve been using Python for quite some time now, and I''m a bit stumped.
Does it really not have a multi-line comment? I think I must just be
missing something simple and stupid.
Thanks in advance.
Doug Tolton
推荐答案
'''''
大多数人使用三联 - 引用字符串
用于多行评论。
'''''
-
Aahz (aa**@pythoncraft.com)< *>
这是Python。我们不太关心理论,除非它与有用的实践相交。
。 --Aahz
''''''
Most people use triple-quoted strings
for multi-line comments.
''''''
--
Aahz (aa**@pythoncraft.com) <*> http://www.pythoncraft.com/
This is Python. We don''t care much about theory, except where it intersects
with useful practice. --Aahz
你如何用Emacs评论文本块?这就是我为我的代码编辑器使用的
。
我想知道未分配的三重字符串是否有效,但是
我还没有尝试过它。
Doug Tolton
How do you comment the block of text with Emacs? That is what I''m
using for my code editor.
I was wondering if a triple-quoted string not assigned would work, but
I hadn''t got arround to trying it yet.
Doug Tolton
在Python模式下,使用Cc#来评论所选区域和Cu Cc#
取消注释区域。评论用##完成。在前面
该区域的每一行,所以它通常从实际的
评论中脱颖而出,因为#-doubling。
- 大卫
In Python mode, use C-c # to comment the selected region and C-u C-c #
to uncomment a region. The commenting is done with "##" at the front
of every line in the region, so it normally stands out from actual
comments due to the #-doubling.
-- David
这篇关于多行评论的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!