Answers for "create file using os python"

6

python os make empty file

open(x, 'a').close()
Posted by: Guest on May-12-2020
0

create file python

file = open("hello.txt", "w")
file.write("Hello, world!")
file.close()
Posted by: Guest on November-10-2021

Python Answers by Framework

Browse Popular Code Answers by Language