티스토리 뷰
1. type()
2. dir()
3. help()
unknownObj
type(unknownObj)
# SomeType as numpy.ndarray, string, int
print(dir(unknownObj))
# ['T', '__fun__', '__fun2__', ... , 'some']
# Print out all modules or functions of that object
help(unknownObj)
# print out all the information that help can reach on the screen
'언어 > Python' 카테고리의 다른 글
List Comprehension Practice (수정 보충 필요) (0) | 2021.01.07 |
---|---|
함수의 결과 값이 가장 작은 element를 구하라 (0) | 2021.01.05 |
exercise-strings-and-dictionaries (0) | 2021.01.01 |
List Comprehensions in Python (0) | 2021.01.01 |
Python sublist, slicing (0) | 2020.12.31 |