Data update
This commit is contained in:
parent
ed705008a8
commit
0df55f9f24
2196 changed files with 32999 additions and 3075 deletions
|
|
@ -1,5 +1,6 @@
|
|||
"""Connect to a socket. Requires Python >= 3.2."""
|
||||
import socket
|
||||
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
||||
sock.connect(("localhost", 256))
|
||||
sock.sendall("hello socket world")
|
||||
sock.close()
|
||||
|
||||
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as sock:
|
||||
sock.connect(("localhost", 256))
|
||||
sock.sendall(b"hello socket world")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue