To get the last word from a string in Python you will need to use split() method. You can use negative index to start from the end of the string.
確定! 回上一頁