2017-12-18python全栈9期第三天第二节之str常用操作方法及for循环之以什么开头搭配切片使用

#!/user/bin/python
# -*- coding:utf-8 -*-
s = 'zdzslswwzl'
s3 = s.startswith('z',2,5)
print(s3)

猜你喜欢

转载自www.cnblogs.com/zhang-da/p/10193491.html
今日推荐