1. View the class properties and methods of the import library
Python has a bit of a feeling especially inconvenient is that, unlike C + +, when a type is specified, an instance of that type is called "." Intelligently prompts for the method or property it contains
Previously, it was resolved by viewing the official documents corresponding to the library. This time, we found a new way. Help, you can list methods and properties
Import Dlibhelp (dlib.rectangles) Help on class rectangle in module Dlib:class rectangle (pybind11_builtins.pybind11_ Object) | This object represents a rectangular area of an image. | | Method Resolution Order: | Rectangle | Pybind11_builtins.pybind11_object | Builtins.object | | Methods defined here: | | __eq__ (...) | __eq__ (Self:dlib.rectangle, arg0:dlib.rectangle), BOOL | | __getstate__ (...) | __GETSTATE__ (self:dlib.rectangle), tuple | | __init__ (...) | __init__ (Self:dlib.rectangle, Left:int, Top:int, Right:int, Bottom:int), None | | __ne__ (...)
2. Jump to the source code of the function definition
Using Pycharm, hold down CTRL and click Functions to jump to the function definition
3. Define a fixed-length array
Import= highlights_sub = Np.zeros (Dtype=np.float64)
Python tips (keep up to date)