2 votes

What is the difference between the ways to open files in Python with "open ()"?

It often happens to me that I want to open a file in Python to add content, or create it from scratch, and I get a bit confused with the use of a , r , a + , r + and so on. I know that one adds, another creates from scratch, another updates ...

The same when reading it with r and r + .

What is the difference between the ways to open a file?

HolaDevs.com

HolaDevs is an online community of programmers and software lovers.
You can check other people responses or create a new question if you don't find a solution

Powered by:

X