ExampleGet your own Python Server. Check if the string ends with a punctuation sign (.): txt = "Hello, welcome to my world." x = txt.endswith(".") print(x).
確定! 回上一頁