Tuesday, August 31, 2010

range(a..z): python generator expression for

In order to generate a..z with generator expression.

import string
for filter in ('uid='+x+'*' for x in string.lowercase):
print(filter)

No comments:

Post a Comment