Notes.
Friday, 7 June 2013
Padding to get counter with constant field length
In [1]: print '%06.0f' % 4
Out [1]: 000004
In [2]: print '%06.0f' % 401
Out [2]: 000401
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment