#!/usr/bin/python# -*- coding:utf-8 -*-
file1 = open('a.txt','r')str = file1.read()file2 = open('b.txt','w')file2.write(str)