Casting an int to a string in Python

前端 未结 0 526
心在旅途
心在旅途 2021-02-11 12:10

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\"          


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