python::strip的特殊用法

>>str='woshi ni de \n \r  'html >>print str.strip()python >>​woshi ni dehtm strip()默认去除空白符,包括'\n', '\r', '\t', ' '。blog 详见以下博客对空白符的说明:ip http://www.360doc.com/content/11/1029/16/5482098_160101381.shtm
相关文章
相关标签/搜索