Python: get source code of an object 2018年12月19日未分類kiyoshi >>>import inspect >>>print(inspect.getsource(object)) argument may be a module, class,method, function…..