python: how to get information about a function?

后端 未结 4 1709
北荒
北荒 2020-11-29 03:50

When information about a type is needed you can use:

my_list = []
dir(my_list)

gets:

[\'__add__\', \'__class__\', \'__conta         


        
4条回答
提交回复
热议问题