str.endswith(suffix[, start[, end]]) text = "Python is easy to learn." result = text.endswith('to learn') # False result = text.endswith('to learn.')# True.
確定! 回上一頁