我正试图找到一种方法来打破一个长的循环,使它的PEP-8有效。(我使用的是flake8 vscode扩展)。
这是代码:
for result_row in soup.find_all('div', {"class": "b2c-inner-data-wrapper"}):
..............我得到的错误是:
line too long (88 > 79 characters)我试过:
for result_row in soup.find_all('div',
{"class": "b2c-inner-data-wrapper"}):但我明白:
continuation line under-indented for visual indent正确的方法是什么?谢谢。
发布于 2022-11-23 19:50:16
result_rows = soup.find_all('div', {"class": "b2c-inner-data-wrapper"})
for result_row in result_rows:
..............https://stackoverflow.com/questions/74552071
复制相似问题