这是我的代码:
x=zipfile.ZipFile('C://X/malware.zip')
for i in range(1):
x.extractall('C://E',pwd='infected')
start=time.clock()
print str(start)
while flag==1:
if os.path.exists('C://E/malware.exe')==True:
flag=1
else:
flag=0
finish=time.clock()
print str(finish)
elapsed=finish-start
print "the time elapsed is " + str(elapsed)+"seconds"
我需要将提取直接写入磁盘,,,如何刷新正在提取的文件,,,???