Code-style for indention of multi-line 'if' statement? [duplicate]
问题 This question already has answers here : Styling multi-line conditions in 'if' statements? [closed] (30 answers) Closed 7 years ago . When indenting long if conditions, you usually do something like this (actually, PyDev indents like that): if (collResv.repeatability is None or collResv.somethingElse): collResv.rejected = True collResv.rejectCompletely() However, this puts the block started by the if statement on the same indentation level as the last part of the if condition which makes it