I meet a problem about converting number to string.
I want to get a string \"0100\" from str(0100), but what I got is \"64\". Does any way I can do to get a string \"010
The integer should be written as 100, not 0100.
You can format the string with leading zeros like this:
>>> "%04d" % 100 '0100'