Reading and writing to Files - your next data source
Автор: ModernPython
Загружено: 2022-12-21
Просмотров: 38
Описание:
A program has 3 functions:
1. get the information from somewhere
2.change the information (optional)
3. put the information somewhere
Let's broaden your skills and show you how to read and write information to text files on your computer. We will grab an open-source book from gutenberg.org and save it to the local filesystem. Then I will show you how to read the text, split it into words, clean up non-alphabet characters, sort the words, and save it to a file.
Table of Contents:
00:00 - Reading and writing to text files
00:43 - Get text from gutenberg.org
01:23 - Using with open() to read text from file
02:29 - Use split to turn text into word list
05:07 - Writing to a file
05:38 - Using string join turn list into string
Повторяем попытку...

Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: