📌  相关文章
📜  打印字符串 python 的第一个单词并返回它 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:24.485000             🧑  作者: Mango

代码示例2
def print_first_word():
    words = "All good things come to those who wait"
    print(words.split().pop(0))
    #to print the last word use pop(-1)
print_first_word()