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()

相关文章:

  • 2022-12-23
  • 2021-12-18
  • 2021-10-25
  • 2021-11-27
  • 2022-12-23
  • 2021-12-17
  • 2021-11-12
猜你喜欢
  • 2022-12-23
  • 2021-07-26
  • 2021-12-15
  • 2021-06-02
  • 2022-01-04
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案