-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
proshe chem ya dumal #16
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
действительно, ничего сложного. хотя имеет смысл попробовать избавиться от второго цикла, для этого можно почитать документацию к BeautifulSoup :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Слишком сложное решение
with open('output.txt','w',encoding='utf8') as f: | ||
for books in top_titles: | ||
for book in books: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
имеет смысл избавиться от второго цикла. для этого можно почитать документацию к BeautifulSoup
for books in top_titles: | ||
for book in books: | ||
f.write(book + '\n') | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
согласно правил оформления кода на python pep8, программы на python должны оканчиваться одной пустой строкой
Описание
Связанныые обсуждения (issues)
#11
Тестирование кода
Тип изменений
Чеклист: