首页 > 编程语言 > 详细

Python拷贝文件脚本

时间:2018-12-06 19:22:07      阅读:158      评论:0      收藏:0      [点我收藏+]

author : headsen chen

date : 2018-12-06  17:56:58

copy_file.py

#!/usr/bin/env python
from sys import argv
from os.path import exists

script,from_file,to_file=argv

print("Copying from %s to %s" %(from_file,to_file))
inputt = open(from_file)
indata= inputt.read()
output = open(to_file,w)
output.write(indata)
output.close()
inputt.close()

Python拷贝文件脚本

原文:https://www.cnblogs.com/kaishirenshi/p/10078234.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!