会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
a56爆大奖在线娱乐的博客
a56爆大奖在线娱乐的园子
账号设置
简洁模式
...
退出登录
注册
登录
欣欣姐
CnBlogs
Home
New Post
Contact
Admin
Subscription
python 判断一个字符串中是否存在另一个字串中的元素
如 判断str是否包含str_list中的元素 str = "this is string example....wow!!!" str_list = ['aa','bb','str','ex'] flag = all( i in str for i in str_list) #用any(),或者a
posted @
2022-03-01 11:24
欣欣姐
Views(
175
) Comments(
0
)
Edit
收藏
举报
会员力量,点亮园子希望
刷新页面
返回顶部
公告