会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
欣欣姐
CnBlogs
Home
New Post
Contact
Admin
Subscription
03 2022 档案
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
欣欣姐
阅读(204)
评论(0)
推荐(0)
公告