摘要: OrderedDict使用dict时,Key是无序的。在对dict做迭代时,我们无法确定Key的顺序。如果要保持Key的顺序,可以用OrderedDict:>>> from collections import OrderedDict>>> d = dict([('a', 1), ('b', 2), ('c', 3)])>>> d # dict的Key是无序的{'a': 1, 'c': 3, 'b... 阅读全文
posted @ 2015-08-11 22:56 Jonn. 阅读(789) 评论(0) 推荐(0) 编辑
摘要: To compile numpy, create a site.cfg file in numpy's source directory with the following or similar content: [mkl] include_dirs = C:/Program Files (x86)/Intel/Composer XE/mkl/include library_dirs =... 阅读全文
posted @ 2015-08-11 13:26 Jonn. 阅读(639) 评论(0) 推荐(0) 编辑