xls'
TOP_DIR = os.path.dirname(os.path.abspath(sys.argv[0]))
HOSTFILE = os.path.join(TOP_DIR,'hosts')
serverlist...平台网站":[1,3,5,6,7],
#u"平台接口":[1,2,5,6,9],
}
def sheet_parse(excelfile,sheetname,rols):
global serverlist...sheet.cell_value(row,rols[3])),
sheet.cell_value(row,rols[4])
)
serverlist.append...sheetname,sheets[sheetname])
try:
hostsfile = open(HOSTFILE,'w')
hostsfile.writelines(serverlist