import osimport platformimport redef kill_linux_port(port): ret = os.popen("netstat -lnp|grep " + str(port)) str_list = ret.read