Method 1 open:
import os
file_name = "123.txt"
open(file_name, "w")
Method 2 pathlib:
import pathlib
file_name = "123.txt"
pathlib.Path(file_name).touch()
Method 1 open:
import os
file_name = "123.txt"
open(file_name, "w")
Method 2 pathlib:
import pathlib
file_name = "123.txt"
pathlib.Path(file_name).touch()