浙江省高等学校教师教育理论培训

微信搜索“毛凌志岗前心得”小程序

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2012年11月13日

摘要: Python: sorted - 司徒正美 - 博客园Python: sortedsorted 是 python的内置函数,可以用来对列表和字典进行排序。以下是两个例子:1、对列表排序>>> elist = [1,5,3,7]>>> sorted(elist)[1, 3, 5, 7]2、对字典排序>>> edict = {"ok":1,"no":2}>>> sorted(edict.items()... 阅读全文
posted @ 2012-11-13 19:20 lexus 阅读(259) 评论(0) 推荐(0)

摘要: >>> a{'a': [1, 3], 'b': [2, 4]}>>> a.items()[('a', [1, 3]), ('b', [2, 4])]>>> sorted(a.items(),key=lambda x:x[1][2])Traceback (most recent call last): File "<stdin>", line 1, in <module> File "<stdin>... 阅读全文
posted @ 2012-11-13 19:19 lexus 阅读(218) 评论(0) 推荐(0)

摘要: python内置函数sorted排序用法 - 阿义的专栏 - 博客频道 - CSDN.NETpython内置函数sorted排序用法 分类: python 2011-06-14 11:43 1700人阅读 评论(0) 收藏 举报 Python: sort,sorted,OrderedDict的用法–2011 年 05 月 13 日 20:58fromhttp://stq... 阅读全文
posted @ 2012-11-13 19:16 lexus 阅读(267) 评论(0) 推荐(0)

摘要: doctestusingpython ./export.py -vverbose args show the test detail good for uPython doctest - 朝着梦想 渐行前进 - 博客频道 - CSDN.NETPython doctest 分类: Python 2011-11-24 17:18 481人阅读 评论(0) 收藏 举报>>> ... 阅读全文
posted @ 2012-11-13 19:05 lexus 阅读(348) 评论(0) 推荐(0)

摘要: 来解决 阅读全文
posted @ 2012-11-13 10:22 lexus 阅读(281) 评论(0) 推荐(0)

摘要: 关于我们 数据堂 Datatang,科研数据共享平台,实验数据,科研数据,科学数据,统计数据,企业数据,行业数据,生活数据,数据集,免费下载科研数据共享---功在当代,利在千秋“科学就是数据,数据就是科学。”一份近期出版的《科学》杂志在社论中指出,“数据推动着科学的发展。”在科研领域,通过传感器、试验仪器、监测设备、计算机等形式产生的数据,其规模和复杂度呈指数级增长,同时,大量基于海量科研数据的应... 阅读全文
posted @ 2012-11-13 09:59 lexus 阅读(1265) 评论(0) 推荐(0)