奥飞火千万电 发表于 2018-8-16 07:00:29

python--循环&if

#!/usr/bin/env python  
import socket
  
#solist =
  
#solist.sort()
  
#for x in solist:
  
#    print x
  

  
def fun():
  
    for x in dir(socket):
  
      if x.startswith("SO_"):
  
            print x
  
fun()
页: [1]
查看完整版本: python--循环&if