Python-字符串
split() 和splitlines()
>>>string = 'I learning Python' >>>string.split() ['I', 'learning', 'Python'] >>>string.splitlines() ['I learning Python']
jion()
>>>string = 'I learning Python' >>>'@'.join(string) 'I@ @l@e@a@r@n@i@n@g@ @P@y@t@h@o@n' >>>list= ['I', 'learning', 'Python'] >>>'@'.join(list) 'I@learning@Python'