python数字转为合法字符串(加了引号那种)

>>> print repr("Hello, world!")
'Hello, world!'
>>> print repr(10000L)
10000L
>>> print str("Hello, world!")
Hello, world!
>>> print str(10000L)
10000
原文地址:https://www.cnblogs.com/ranzhong/p/13984210.html