python 字符词串和字符串的转换
type(' i am ')
str
type(''.join('i am'))
str
''.join('sda sadaa') 'sda sadaa'
q=str('i am the teacher').split() q ['i', 'am', 'the', 'teacher']
''.join(q)
'iamtheteacher'
type(' i am ')
str
type(''.join('i am'))
str
''.join('sda sadaa') 'sda sadaa'
q=str('i am the teacher').split() q ['i', 'am', 'the', 'teacher']
''.join(q)
'iamtheteacher'