Casting an int to a string in Python

前端 未结 0 1474
情深已故
情深已故 2021-02-11 12:32

I want to be able to generate a number of text files with the names fileX.txt where X is some integer:

for i in range(key):
    filename = \"ME\" + i + \".txt\"          


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