some questions

Fredrik Lundh fredrik at
Mon Jul 14 22:33:01 CEST 2003

Andreas Bauer wrote:

> Could anybody tell me how to hide a varibale e.g. in a url
> Example
> for i in (0,5):
>         u = urllib.urlopen("
>         - here the variable e.g page1,page2,page3.html

here's one way to do it:

for i in range(1, 5):
    u = urllib.urlopen("" % i)

more here:

(reading the entire tutorial won't hurt, of course)


<!-- (the eff-bot guide to) the python standard library (redux):

More information about the Python-list mailing list