# coding=utf-8
import os
import os.path
import re
import array
import copy
import cmd
import pdb
import pickle
import tempfile
import subprocess
startSign='正在解析...'
startTemp=startSign.decode(encoding='utf-8')
new_start_sign=startTemp.encode('gbk')
print new_start_sign
rootdir=os.getcwd()
# rootdir="G:\Apps"
# 新建文件夹 os.path.isdir(rootdir+'/logout') 判断指定目录下该文件夹是否存在
if not os.path.isdir(rootdir+'/logout'):
os.makedirs(rootdir + '/logout')
logPath=os.path.abspath('logout')
# 新建存放信息 的txt文档
file_nonstandard_info=open(logPath+'/non_standard_filename.txt','w')
file_standard_info=open(logPath+'/standard_filename.txt','w')
file_nonstandard_dirname=open(logPath+'/non_standard_dirname.txt','w')
file_standard_dirname=open(logPath+'/standard_dirname.txt','w
python小工具___检查文件名是否规范
最新推荐文章于 2024-04-30 19:07:16 发布