1、python 字典的用法
from collections import OrderedDict
dict =OrderedDict()
dict['foo']=3
dcit['aol']=1
2、python中删除指定类型的文件
import sys, csv , operator
import os
import glob
for i in range(0, 10):
path = "C:\\Folder_" + str(i)
for infile in glob.glob( os.path.join(path, '*.csv') ):
os.remove(infile)
3、python执行可执行文件后返回可执行文件的输出值
import subprocess
proc = subprocess.Popen('cmd', shell=True)
cme = proc.communicate()
ret = proc.poll();
参考网址:https://stackoverflow.com/questions/1872329/storing-python-dictionary-entries-in-the-order-they-are-pushed
参考网址:http://blog.csdn.net/vernice/article/details/46424921