创建套接字 创建用于网络通信的套接字: import sockets = socket.socket(socket.AF_INET, socket.SOCK_STREAM) 连接到远程服务器 建立与远程服务器通过套接字的连接: s.connect(('example.com', 80))# Connect to example.com on port 80 ...
1.os- 操作系统接口 与操作系统交互: import oscurrent_directory = os.getcwd()# Get the current working directory 2.sys- 系统特定参数和函数 ...