Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 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