open python not write file

25

testfile1 = open("testfile.txt", "w")
testfile1.write("this is a test")
testfile1.flush()

Comments

Submit
0 Comments