摘要: python may definetheir ownfuncin scriptto mimic __LINE__ in C language so as to grab the line make easier, it should be something like this:"""This provides a lineno() function to make it easy to grab the linenumber that we're on."""import inspectdef lineno(): " 阅读全文
posted @ 2014-01-16 18:11 Yu Zi 阅读(1376) 评论(0) 推荐(0) 编辑