《笨辦法學python》習題17:更多文件操做

from sys import argv from os.path import exists #咱們 import 了又一個很好用的命令 exists。這個命令將文件名字符串做爲參數,若是文件存在的話,它將返回 True,不然將返回 False。 script, from_file, to_file = argv print "Copying from %s to %s" % (from_
相關文章
相關標籤/搜索