Built-in Functions — Python 3.9.5 documentation
文章推薦指數: 80 %
For other containers see the built-in list , set , and tuple classes, as well as the collections module. dir ([object])¶. Without arguments, return the list of ... Navigation index modules| next| previous| Python» 3.9.5Documentation» ThePythonStandardLibrary»
延伸文章資訊
- 1Python dir() Function - W3Schools
Definition and Usage. The dir() function returns all properties and methods of the specified obje...
- 2dir() function in Python - GeeksforGeeks
attributes in random function. print ( "The contents of the random library are::" ). # module Obj...
- 3How do I list all files of a directory? - Stack Overflow
Get files: os.listdir() in a particular directory (Python 2 and 3). import os arr = os.listdir('F...
- 4Python dir() function - JournalDev
Python dir() function attempts to return a list of valid attributes for the given object. If no a...
- 5Python dir() function with Examples - Javatpoint
Python dir() function returns the list of names in the current local scope. If the object on whic...