Why is 'dir()' named 'dir' in python?

前端 未结 4 2088
醉话见心
醉话见心 2020-12-05 04:10

In Python there is a built-in function called dir. This is used to get a list of all the attributes for an object.

I understand what it does, but I am

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