Python IDLE 错误描述: Subprocess Startup ErrorIDLE's subprocess didn't make connection. Either IDLE can't start a subprocess or personal firewall software is blocking the connection.------------------------------ 错误截图: 图1 运行环境:XP sp3 . Python 2.7.5 ---
功能:备份文件夹.能将文件的不同版本备份下来,并且每个有不同的名字 #! python3 # backupToZip.py - 备份文件的不同版本到压缩文件中 import zipfile,os #folder-指定需要备份的文件夹 def backupToZip(folder): #获得绝对路径,以后就使用这样的方式来进行使用地址,不去上来就让path=‘绝对地址’了 folder=os.path.abspath(folder) #figure out the filename this co