Good Stuff

Modules

SYS and OS

import sys, os
print(sys.version)

DateTime

from datetime import datatime as dt
print(dt.now())

Sockets

TCP Connection

#!/usr/bin/python3
import socket

host = "127.0.0.1"
port = 1234

s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((host, port))

Last updated