28.(str).endswith()
判断字符串是否以指定后缀结尾,如果以指定后缀结尾返回True,否则返回False
str50 = "sunck is a good good man"
print(str50.endswith("man"))
#(输出)True
28.(str).endswith()
判断字符串是否以指定后缀结尾,如果以指定后缀结尾返回True,否则返回False
str50 = "sunck is a good good man"
print(str50.endswith("man"))
#(输出)True