What does the ** maths operator do in Python?

前端 未结 5 1962
星月不相逢
星月不相逢 2020-12-18 18:24

What does this mean in Python:

sock.recvfrom(2**16)

I know what sock is, and I get the gist of the recvfrom function, but what

5条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-18 19:15

    http://docs.python.org/library/operator.html#mapping-operators-to-functions

    a ** b  =  pow(a,b)
    

提交回复
热议问题