Hello!
Tell me, please, on the python syntax. The task is to process several files whose names are automatically generated in the form file+i+j
, where i
and j
are integers (that is, names like file11
, file12
...). How to competently refer to the desired file, for example, in the following line:
f = open("file+i+j.txt", "wb")
And the second similar question is how to access the variable url
(which also includes i
and j
) url ='http://api.wikimapia.org/function=box&bbox["i","j"]&count=50000&format=kml&pack=gzip'
How to correctly enter these ["i","j"]
?
Thank!