我正在用 Python 进行套接字编程,我看到了这个:
sock.getsockname()[1]
谁能解释一下这是做什么[1]用的吗?
[1]
python sockets
python ×1
sockets ×1