这不起作用:
something = \
line_of_code * \ # Comment
another_line_of_code * \ # Comment
and_another_one * \ # Comment
etc
Run Code Online (Sandbox Code Playgroud)
这也不是:
something = \
# Comment \
line_of_code * \
# Comment \
another_line_of_code * ...
Run Code Online (Sandbox Code Playgroud)
这也不是:
something = \
''' Comment ''' \
line_of_code * \
''' Comment ''' \
another_line_of_code * ...
Run Code Online (Sandbox Code Playgroud)
如果有一种方法可以将代码中的注释分成多行?