file = open('test.txt', 'w') #쓰기 모드로 열기
file.write('hello') #text.txt파엘에 hello 쓰기
file.close()
file = open('test.txt','r')
str = file.read()
print(str)
file.close()
file = open('test3.txt','r',encoding='utf-8')
str = file.read()
print(str)
file.close()