사용자로부터 파일 이름과 삭제할 문자열을 입력받고, 파일을 열어서 사용자가 원하는 문자열을 삭제한 후에 다시 파일에 쓰는 프로그램을 작성해보자. infilename = input('파일 이름을 입력하세요: ').strip() infile = open(infilename, 'r', encoding='UTF8') file_s = infile.read() removed_s = input('삭제할 문자열을 입력하세요: ').strip() modified_s = file_s.replace(removed_s,'') infile.close() outfile = open(infilename, 'w', encoding='UTF8') print(modified_s, file = outfile, end = '') print..