print("\n", Gb[u], "\t",IDlist[u],end="") f.write("\n"+ Gb[u]+"\t"+IDlist[u]) 转载于:https://www.cnblogs.com/shengxinjack/p/7309046.html