python
walterby
这个作者很懒,什么都没留下…
展开
-
python出错解决
1.IndentationError: unindent does not match any outer indentation level 换行原创 2013-08-21 15:48:57 · 482 阅读 · 0 评论 -
常用的 Python 调试工具
以下是我做调试或分析时用过的工具的一个概览。如果你知道有更好的工具,请在评论中留言,可以不用很完整的介绍。 日志 没错,就是日志。再多强调在你的应用里保留足量的日志的重要性也不为过。你应当对重要的内容打日志。如果你的日志打的足够好的话,单看日志你就能发现问题所在。那样可以节省你大量的时间。 如果一直以来你都在代码里乱用 print 语句,马上停下来。换用logging.d转载 2013-11-08 14:02:50 · 609 阅读 · 0 评论 -
11.8小结
1. 关于python写的代码 1 #!/usr/bin/python 2 3 import urllib2 4 import re 5 import xml.dom.minidom 6 import xml.etree.ElementTree as ET 7 import psutil 8 9 #xml = 'http://10.4.1.160/Syst原创 2013-11-08 17:12:15 · 457 阅读 · 0 评论 -
python学习笔记(一)
1.Swapping Values WithoutUsing a Temporary Variable a, b, c = b, c, a原创 2013-11-20 10:53:51 · 723 阅读 · 0 评论 -
python
http://pythonbooks.revolunet.com/原创 2013-06-13 17:16:31 · 346 阅读 · 0 评论