diff options
Diffstat (limited to 'day1')
| -rw-r--r-- | day1/task3/task3.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/day1/task3/task3.py b/day1/task3/task3.py index a456af9..6d328ac 100644 --- a/day1/task3/task3.py +++ b/day1/task3/task3.py @@ -9,10 +9,10 @@ else: with open(file_path, 'w', encoding='utf-8') as f: f.write('Ало здравствуйте. Alo zdravstvuite.') - with open(file_path, 'w', encoding='windows-1251') as f: + with open(file_path, encoding='cp1251') as f: print(f.read()) - with open(file_path, 'w', encoding='utf-8') as f: + with open(file_path, encoding='utf-8') as f: print(f.read()) os.remove(file_path) |