【发布时间】:2021-06-03 11:51:43
【问题描述】:
按照 PEP8 的指南将其分成多行的最简洁的方法是什么?
long_name, longer_name, even_longer_name = list_to_break_into_long_names
我能想到
long_name, longer_name, even_longer_name = \
list_to_break_into_long_names
但反斜杠引发C092 prefer implied line continuation inside parentheses, brackets, and braces as opposed to a backslash。我想不出一个干净的方法来做到这一点。
【问题讨论】:
标签: python-3.x pep8 flake8