python中raw_input().strip().split()

一、strip()方法html strip() 方法用于移除字符串头尾指定的字符(默认为空格)。python strip()方法语法:this str.strip([chars]) 参数是chars-- 移除字符串头尾指定的字符. 例子以下:spa #!/usr/bin/python str = "HHHH I am a student HHHHH"; print str.strip( 'H'
相关文章
相关标签/搜索