Вот мой код:
1.< /p>
Код: Выделить всё
if (len(regex) > 2 and regex[0] == '(' and regex[-1] == ')' and
sum(regex.count(char) for char in splitter) == 1 and
regex.count('(') == 1 and regex.count(')') == 1):
print('hi')
Код: Выделить всё
if (len(regex) > 2 and regex[0] == '(' and regex[-1] == ')' and
sum(regex.count(char) for char in splitter) == 1 and
regex.count('(') == 1 and regex.count(')') == 1):
print('hi')
Код: Выделить всё
if (len(regex) > 2 and regex[0] == '(' and regex[-1] == ')'
and regex.count('(') > 1):
print('hi')
Код: Выделить всё
E125 continuation line does not distinguish itself from next logical line
Подробнее здесь: https://stackoverflow.com/questions/225 ... pep8-error