Win 7, IDLE (Python 3.8 32-bit) Не открывается сохранённый файл index.html Код скрипта:
# coding: utf8
from bs4 import BeautifulSoup
def main():
file = open('index.html', mode='r', encoding='CP1251')
print(file)
if __name__ == '__main__':
main()
Выдаёт ошибку:
<_io.TextIOWrapper name='index.html' mode='r' encoding='CP1251'>
Свежие комментарии