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 "0100" from 0100.
UPDATE
Thanks for many people's pointing out that the leading "0" is a indicator for octal. I know it, what I want is to convert 0100 to "0100", any suggestion?
Best Regards,
oct(0100)but that's probably not your intention. Where are you obtaining the integer 0100 from? Are you reading it from somewhere? Perhaps there's better ways to solve this, but you'll need to provide us with some context to your problem.