简易版本的拷贝工具
# 源文件路径
resource_file = input('源文件路径>>>:').strip()
# 目标文件路径
destination_file = input('目标文件路径>>>:').strip()
# b模式读写
# with open(r'%s' % resource_file, 'rb') as read_file, open(r'%s' % destination_file, 'wb') as write_file:
with open(r'{}'.format(resource_file), 'rb') as read_file, open(r'{}'.format(destination_file), 'wb') as write_file:
for line in read_file:
write_file.write(line)