How to view the source code of Python?

< H2 > problem description < / H2 >

I"d like to look at the source code of Python and see the code implementation process of the function.

< H2 > the environmental background of the problem and what methods you have tried < / H2 >

in pycharm, after jumping to the corresponding function with the ctrl+ right mouse button, there is only a long comment, followed by a pass. There is no specific code implementation process.

< H2 > related codes < / H2 >
def meanShift(probImage, window, criteria): -sharp real signature unknown; restored from __doc__
    """
    meanShift(probImage, window, criteria) -> retval, window
    
    """
    pass
< H2 > what result do you expect? < / H2 >

in this case, how can I continue to find the contents of this method? What you want to see is the content of the code.

May.13,2022

you can use the strace tool to track the specific usage of the code in the linux environment. Baidu strace

Menu