【发布时间】:2013-07-11 22:27:46
【问题描述】:
这不起作用:
something = \
line_of_code * \ # Comment
another_line_of_code * \ # Comment
and_another_one * \ # Comment
etc
这也不行:
something = \
# Comment \
line_of_code * \
# Comment \
another_line_of_code * ...
这也不行:
something = \
''' Comment ''' \
line_of_code * \
''' Comment ''' \
another_line_of_code * ...
有没有办法让代码中的cmets分成多行?
【问题讨论】:
标签: python comments format multiline backslash