美文网首页python
Split and Join

Split and Join

作者: Python_Camp | 来源:发表于2020-07-29 10:41 被阅读0次
    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