#!/usr/bin/env python # Get list of available socket options -- Chapter 3 -- sockopts.py import socket solist = [x for x in dir(socket) if x.startswith('SO_')] solist.sort() for x in solist: print x
转载于:https://www.cnblogs.com/djcsch2001/archive/2011/05/03/2035201.html