python随笔:startswith()得用法

1.str1.startswith(“字符”,开始位置,结束位置)

2.查询处列表中不包含姓张得,写法:

 

posted @ 2021-03-28 15:09  文刀六日  阅读(513)  评论(0编辑  收藏  举报