临时
1. 去掉串首尾的空格
‘ abc ’.strip()
2. 反单引号,显示字符串的内容
>>> list = [1,2,3]
>>> print 'Removed [',`list.pop()`
,']'
Removed [ 3 ]
>>> temp = 1
>>> print 'Removed [',`temp`
,']'
Removed [ 1 ]
临时
1. 去掉串首尾的空格
‘ abc ’.strip()
2. 反单引号,显示字符串的内容
>>> list = [1,2,3]
>>> print 'Removed [',`list.pop()`
,']'
Removed [ 3 ]
>>> temp = 1
>>> print 'Removed [',`temp`
,']'
Removed [ 1 ]