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

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

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

2012年11月26日

摘要: Python Module of the Week - Python Module of the WeekPyMOTW »Python Module of the WeekThe Python Module of the Week series, or PyMOTW, is a tour of the Python standard library through short examples. ... 阅读全文
posted @ 2012-11-26 14:46 lexus 阅读(882) 评论(0) 推荐(0)

摘要: Standard Exception Classes in Python 1.5Standard Exception Classes in Python 1.5(updated for Python 1.5.2 -baw)User-defined Python exceptions can be either strings or Python classes. Since classes ha... 阅读全文
posted @ 2012-11-26 14:00 lexus 阅读(269) 评论(0) 推荐(0)

摘要: Standard Exception Classes in Python 1.5Fatal BreakageMore serious is breaking error handling code. This usually happens because the error handling code expects the exception or the value associated ... 阅读全文
posted @ 2012-11-26 14:00 lexus 阅读(209) 评论(0) 推荐(0)

摘要: Area under a curve [Home] How to calculate areas under a function graph.This topic is part of the TCS FREE high school mathematics 'How-to Library', and will help you to calculate area... 阅读全文
posted @ 2012-11-26 13:15 lexus 阅读(397) 评论(0) 推荐(0)

摘要: Python 处理 ini 格式文件 | ConfigParser的使用 [Python俱乐部]Python 处理 ini 格式文件 | ConfigParser的使用ini文件格式概述ini 文件是文本文件,ini文件的数据格式一般为:[Section1 Name] KeyName1=value1 KeyName2=value2 ... [Section2 Name] KeyName1... 阅读全文
posted @ 2012-11-26 11:43 lexus 阅读(319) 评论(0) 推荐(0)

摘要: 125 def load_conf_from_file(self,ini_file):126 """127 从配置文件加载参数128 """129 key_fist_part=""130 for line in codecs.open(ini_file,"r","utf-8"):131 #忽略#注释行132 if line.strip()=="" or line.strip()[0]=="#":1... 阅读全文
posted @ 2012-11-26 11:40 lexus 阅读(242) 评论(0) 推荐(0)

摘要: ini文件_百度百科ini文件目录 简介 INI文件名 格式 节 参数(键=值) 注解 ini文件实例 展开简介 .ini 文件是Initialization File的缩写,即初始化文件。是windows的系统配置文件所采用的存储格式,统管windows的各项配置,一般用户就用windows提供的各项图形化管理界面就可实现相同的配置了,但在某些情况,还是要直接编辑.ini才方便,一般只有很熟悉w... 阅读全文
posted @ 2012-11-26 10:41 lexus 阅读(224) 评论(0) 推荐(0)