>>> print repr("Hello, world!") ‘Hello, world!‘ >>> print repr(10000L) 10000L >>> print str("Hello, world!") Hello, world! >>> print str(10000L) 10000
python数字转换为字符串的两种方式
原文:http://www.cnblogs.com/stuqx/p/7291920.html