摘要: list函数: 功能:将字符创转化为列表,例:列表基本函数: 1.元素赋值,例:注意:通过list[0]= 'hel',如果原来位置上有值,会覆盖掉原来的。2.分片操作1)显示序列,例:注意:(1)list1[beg:end]将显示列表的从list1[beg]到list1[end-1]的元素,l... 阅读全文
posted @ 2014-06-17 22:37 亲亲小强 阅读(211) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/pythonimport tracebacktry: 1/0#except Exception,e:# print traceback.format_exc() except Exception as e: print e#!/usr/bin/pythonimport tra... 阅读全文
posted @ 2014-06-17 11:11 亲亲小强 阅读(279) 评论(0) 推荐(0) 编辑