Python数组操作2

#!/usr/bin/python
#coding=gb2312 

S='pallyer';
print S.replace('all', 'bok');
line='aa bb cc dd';
col=line.split();
print col;
print line.startswith('a');

print line.endswith('d');

 

posted @ 2013-03-04 15:46  墨迹哥's  阅读(154)  评论(0编辑  收藏  举报