inspect 模块也提供了许多有用的函数,来获取活跃对象的信息。比方说,你可以查看一个对象的成员,只需运行:. import inspect. print(inspect.getmembers(str)).
確定! 回上一頁