1.获取当前时间
# -*- coding: gbk -*-
import os
import time
import shutil
today = time.strftime('%Y-%m-%d 星期%w')
now = time.strftime('%H:%M:%S')
>>>
2.os.path常见属性
os.path.sep :路径分隔符 。以前老爱用'\\' ,后来用'/'。
os.path.altsep:(根目录,不是很确定,我用来做根目录。反正在windows表现是'/')
os.path.curdir: 当前目录
os.path.pardir: 父目录
3.判断是否是指定文件类型
File.rsplit('.',1)[-1] == type当然也可以写成
File.split('.')[-1:][0] == type








