摘要:
1 # -*- coding:utf-8 -*- 2 from sys import argv 3 from os.path import exists 4 5 script, from_file, to_file = argv 6 7 print ("copying from %s to %s" % (from_file, to_file)) 8 9 # we cou... 阅读全文
摘要:
1 # -*- coding:utf-8 -*- 2 3 from sys import argv 4 5 script, filename = argv #解包变量参数 6 7 print ("we're going to erase %r." % filename) 8 print ("if you don't want that, hit CTRL-C(^c).... 阅读全文