在Pycharm中,我有以下python代码:
...
for index, row in df.iterrows():
# here comes some logic
print( index)
...
我执行了重新格式化(通过:Menu - Code - Reformat Code
)。
之后,代码如下所示:
...
for index, row in df.iterrows():
# here comes some logic
print(index)
...
我想让评论行不缩进:
...
for index, row in df.iterrows():
# here comes some logic
print(index)
...
重新格式化不会缩进评论行,我该怎么做?
(使用//formatter:off
等不是一种选择)