将file1 复制一份存为file2
思路:
1. 打开file1 和file2
2. 从file1中读取出内容,将这些内容写入到file2中
3. 如果file1很大应该循环的进行读写
def copy(file1, file2):
fr = open(file1, 'rb')
fw = open(file2, 'wb')
while
将file1 复制一份存为file2
思路:
1. 打开file1 和file2
2. 从file1中读取出内容,将这些内容写入到file2中
3. 如果file1很大应该循环的进行读写
def copy(file1, file2):
fr = open(file1, 'rb')
fw = open(file2, 'wb')
while