str :把值转换为合理的字符串
repr:创建一个字符串
>>> print repr("hello world")
'hello world'
10000L
hello world
10000
str是一种类型,把“L”看作长整型符号
repr是一个函数,把“10000L”整看作体的字符串
str :把值转换为合理的字符串
repr:创建一个字符串
>>> print repr("hello world")
'hello world'
10000L
hello world
10000
str是一种类型,把“L”看作长整型符号
repr是一个函数,把“10000L”整看作体的字符串