How do I index a path with a counter (syntax it means) in Python? For example, I have this code:
while i<5:
with open("xxx\\xxx\\test(i)","r+") as f:
f.write("hello")
The output should be on 5 files: test0, test1, test2, test3, test4.