Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 14011

Insert variable values into a string [duplicate]

$
0
0

I want to introduce a variable [i] into a string in Python.

For example look at the following script. I just want to be able to give a name to the image, for example geo[0].tif ... to geo[i].tif, or if you use an accountant as I can replace a portion of the value chain to generate a counter.

data = self.cmd("r.out.gdal in=rdata out=geo.tif")self.dataOutTIF.setValue("geo.tif")

Viewing all articles
Browse latest Browse all 14011

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>