mirror of
https://github.com/python/cpython.git
synced 2026-03-11 07:20:59 +00:00
4 lines
113 B
Python
4 lines
113 B
Python
|
|
def create_file(filename, content=b'content'):
|
||
|
|
with open(filename, "xb", 0) as fp:
|
||
|
|
fp.write(content)
|