Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # list_zfill.py
- result=[]
- for num in xrange(12):
- result.append(str(num+1).zfill(3))
- ### result : ['001', '002', '003', '004', '005', '006', '007', '008', '009', '010', '011', '012']
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement