rolist = list(xx[:xx.index('via')] if 'via' in xx else xx for xx in routelist) 来源:https://www.cnblogs.com/angdh/p/11979715.html 标签 xx