file = open('C:/pythonTxt/test.txt','w') strCnt = file.write('Hello world~') print(f' strCnt : {strCnt}') file.close()
open() 열기, close() 닫기, read() or write() 읽기, 쓰기 'w' 쓰기모드,