知らないライブラリを使っているとき、「これ、どんな機能があるんだっけ?」とか「この関数の引数、なんだっけ?」って思うこと、あるよね。 今まではスマホやパソコンで検索していたかもしれないけど、実はPythonそのものに「キミ、何ができるの?
# The dir() function returns a list of valid attributes for the specified object. # When called without arguments, it returns a list of names in the current local scope. # When called with an object ...
We must look into dir(), __dict__() and help() attribute/methods in python. They make it easy for us to understand how classes resolve various functions and executes code. In Python, there are three ...