源代码
txt = "Hello, welcome to my world." x = txt.endswith(".") print(x)
运行结果