text.py
from sys import argv
script, from_file , to_file = argv
in_file = open(from_file)
indata = in_file.read()
out_file = open(to_file,'w')
out_file.write(indata)
print("All copy done")
执行命令 : python3 test.py txt txt01
说明:将txt的内容复制到txt01