name = "zhou hong yu"
name = "li zheng hao"
print(name.split(' '))
def nick(name):
new = name.split(' ')
res = [i[0] for i in new]
return ''.join(res)
print(nick(name))
name = "zhou hong yu"
name = "li zheng hao"
print(name.split(' '))
def nick(name):
new = name.split(' ')
res = [i[0] for i in new]
return ''.join(res)
print(nick(name))
本文标题:Split and Join
本文链接:https://www.haomeiwen.com/subject/iychrktx.html
网友评论