1 2 3 4 5 6 7 8 9 10 11 12
#!/usr/bin/env python def main(): i=0 max=pow(10,15) while True: print "%015d"%i, i=(i+1)%max if __name__ == '__main__': main()