python字符串提取和插入(Python如何提取字符串中的字符) ╰半橙微兮° 2023-09-25 10:46 96阅读 0赞 ## python 提取字符串中的内容? ## a='wfefwef545sd1f315ew4f更新时间:2020-08-0817:00' b='更新时间:' index=a.find(b) ifindex!=-1: print(a\[index+len(b):\]) 本回答由网友推荐 ![python字符串提取和插入][python] ## python 从字符串中提取指定的内容? ## s=' ' importre c=re.search('content="(.\*)"',s).group(1) 本回答由提问者推荐 [python]: https://img2.baidu.com/it/u=774995571,2496862034&fm=15&fmt=auto
还没有评论,来说两句吧...