Reading Information a Text File in Python

Опубликовано: 10 Октябрь 2019
на канале: Access 2 Learn
1,304
13

http://access2learn.com/tutorial/pyth...

Like videos like this? Want to learn more about Python? Then check out this playlist:    • Intro to the Python Programming Language   and subscribe to the channel:    / @access2learn  

Reading data from a user typing it in, is helpful, but only in some instances. Being able to read persistent data (data that exists between times running the application), or large amounts of data will often require the use of reading a text file.

In this video I will show you how to read data from a file in three different ways, including reading the entire file into a variable, reading each line of the file manually, and using a loop to read the file line by line automatically for us.

I will also show you how to use rstrip to remove unwanted characters from your output.


Смотрите видео Reading Information a Text File in Python онлайн, длительностью часов минут секунд в хорошем качестве, которое загружено на канал Access 2 Learn 10 Октябрь 2019. Делитесь ссылкой на видео в социальных сетях, чтобы ваши подписчики и друзья так же посмотрели это видео. Данный видеоклип посмотрели 1,304 раз и оно понравилось 13 посетителям.