Y
yhvh
I want to generate a range with variable leading zeros
x = [0010, 0210]
padding = len(x[1])
for j in range(x[0], x[1]):
print (url).join('%0(pad)d(jj)'+'.jpg') %{'pad'
adding, 'jj':j}
This is syntactically incorrect, you can't insert a variable into the
string format options. Any ideas?
x = [0010, 0210]
padding = len(x[1])
for j in range(x[0], x[1]):
print (url).join('%0(pad)d(jj)'+'.jpg') %{'pad'
This is syntactically incorrect, you can't insert a variable into the
string format options. Any ideas?