# -*- coding: cp936 -*-
from PyQt4 import QtGui
from PyQt4 import QtCore
import sys,time,random,os,re
from PyQt4.QtGui import *
from PyQt4.QtCore import *
def Class_Import_Image(path):
i=0#为什么函数名称是这样,因为Image它是一个类的对象,因为要导入所以写成这样
#while 1:
try:
ls=os.listdir(path)
#except:
#print(‘access deny‘)
except Exception, e:
print(‘access deny‘)
print e,ur‘文件路径不正确‘,ur‘您的文件路径呢?对不起找错地方了吧‘,ur‘这个地方都能被您找到,真。。。。。‘
else:
for l in ls:
print‘第‘,i+1,‘次‘
time.sleep(1)
temp=os.path.join(path,l)
print ur‘创建文件时间:‘,time.ctime((os.path.getatime(temp))),
print ur‘创建文件夹时间为:‘, time.ctime(os.path.getctime(os.path.dirname(temp))),
print len(temp),ur‘数量‘,sum(os.path.getsize(os.path.join(path,l)) for name in temp),ur‘字节数‘,
if(os.p