[351]python的inspect模塊

inspect模塊主要提供了四種用處:python (1). 對是不是模塊,框架,函數等進行類型檢查。web (2). 獲取源碼app (3). 獲取類或函數的參數的信息框架 (4). 解析堆棧python2.7 # -*-coding:UTF-8 -*- import inspect def a(a, b=0, *c, d, e=1, **f): pass aa = inspect.
相關文章
相關標籤/搜索