摘要:split函数:将字符串分割成序列str.split("分隔符")一般可以这样用 list = [n for n in str.split],这样可以得到一个新的序列strip函数:去除两侧的空格字符,如果strip带了参数的话,也可以去除指定的字符如一个字符"#*1234#" a可以用a.stri...
阅读全文
posted @ 2014-10-31 22:57
posted @ 2014-10-31 22:57
posted @ 2014-10-30 22:00
posted @ 2014-10-29 10:21