Python - Use Help Function to Learn About Classes or Functions

preview_player
Показать описание
#Python #Shorts
This is helpful especially when working with other peoples' code and they are good at documenting it :)
By calling the "help" function on an instance of an object or a function (without invoking the function), it will produce a nice-looking output telling you all it knows about such object or function.
And if there's nothing useful, well, then blame whoever wrote the code without documenting it!

-------------------------------------------------------------------------------------
Links:
Рекомендации по теме