Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
2
Task/Write-entire-file/Python/write-entire-file-1.py
Normal file
2
Task/Write-entire-file/Python/write-entire-file-1.py
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
with open(filename, 'w') as f:
|
||||
f.write(data)
|
||||
4
Task/Write-entire-file/Python/write-entire-file-2.py
Normal file
4
Task/Write-entire-file/Python/write-entire-file-2.py
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
from pathlib import Path
|
||||
|
||||
Path(filename).write_text(any_string)
|
||||
Path(filename).write_bytes(any_binary_data)
|
||||
Loading…
Add table
Add a link
Reference in a new issue