摘要: 假如需要一系列的列名如,c1、c2、c3……,该如何生成? 可以使用python的推导 x = ['c' + str(s) for s in range(5)] x Out[3]: ['c0', 'c1', 'c2', 'c3', 'c4'] 阅读全文