Reading in multiple files in Python and renaming them using string - str(i+1) not working?

前端 未结 0 1606
暗喜
暗喜 2021-01-19 08:31

I have the following loop, where cfile has been defined as \'C_\' previously.

for i in range(15,25): infile = cfile + str(i+1) + \'.txt\' C + str(i+1) = np.loadtxt (i

相关标签:
回答
  • 消灭零回复
提交回复
热议问题