摘要: 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... 阅读全文
posted @ 2016-11-19 00:50 听风呤 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 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).... 阅读全文
posted @ 2016-11-19 00:48 听风呤 阅读(206) 评论(0) 推荐(0) 编辑