Possible Duplicate:
How can I get the source code of a Python function?
如何返回函数的代码? func_name方法按预期工作,但func_代码无法正常工作
>>> def testthis(): print 'test successful'
>>> testthis()
test successful
>>> testthis.func_name
'testthis'
>>> testthis.func_code
<code object testthis at 0124D728, file "<pyshell#281>", line 1>
你可以用
因为他得到了密码。在
相关问题 更多 >
编程相关推荐