阅读背景:

傻子都能看懂的——Python中的endswith方法

来源:互联网 

代码:

str = "Hello,Python"
suffix = "Python"
print(str.endswith(suffix, 2))str = "Hello,Python"
suffix = "Python



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: