Python - 063 : Open a file in write mode in python #python #pythonprogramming #pythontutorial

preview_player
Показать описание
Write Only ('w’): This mode opens the file for writing only. The data in existing files are modified and overwritten. The start of the file is where the handle is located. If the file does not already exist in the folder, a new one gets created.
Write and Read ('w+’): This mode opens the file for both reading and writing. The text is overwritten and deleted from an existing file. The start of the file is where the handle is located.
Рекомендации по теме
visit shbcf.ru