Python

endswith() 方法用于判断字符串是否以指定后缀结尾,如果以指定后缀结尾返回True,否则返回False。

原文地址:https://www.cnblogs.com/chargeworld/p/11521345.html