python list 中如何实现指定字符串的连续多行删除 5
example:tag1(2014-11-30)aaaaaaaaaaaaaaaaaaaaaaaaaabaaaaaaaadaadaaaaaaaaaaaaatag2(2014...
example:
tag1 (2014-11-30)
aaaaaaaaaaaaaaaaaaaaaaaaaa
baaaaaaaadaadaaaaaaaaaaaaa
tag2 (2014-11-20)
aaaaaaaaaaaaaaaaaaaaaaaaaa
baaaaaaaadaadaaaaaaaaaaaaa
tag1 (2014-11-12)
aaaaaaaaaaaaaaaaaaaaaaaaaa
baaaaaaaadaadaaaaaaaaaaaaa
tag2 (2014-11-10)
aaaaaaaaaaaaaaaaaaaaaaaaaa
baaaaaaaadaadaaaaaaaaaaaaa
生成1:
tag1 (2014-11-30)
aaaaaaaaaaaaaaaaaaaaaaaaaa
baaaaaaaadaadaaaaaaaaaaaaa
tag1 (2014-11-12)
aaaaaaaaaaaaaaaaaaaaaaaaaa
baaaaaaaadaadaaaaaaaaaaaaa
生成2:
tag2 (2014-11-12)
aaaaaaaaaaaaaaaaaaaaaaaaaa
baaaaaaaadaadaaaaaaaaaaaaa
tag2 (2014-11-10)
aaaaaaaaaaaaaaaaaaaaaaaaaa
baaaaaaaadaadaaaaaaaaaaaaa
请问那位Python高手如何实现上面的字符串分割?谢谢!
其中aaaaaaaaaaaaaaaaaa是任意字符串 展开
tag1 (2014-11-30)
aaaaaaaaaaaaaaaaaaaaaaaaaa
baaaaaaaadaadaaaaaaaaaaaaa
tag2 (2014-11-20)
aaaaaaaaaaaaaaaaaaaaaaaaaa
baaaaaaaadaadaaaaaaaaaaaaa
tag1 (2014-11-12)
aaaaaaaaaaaaaaaaaaaaaaaaaa
baaaaaaaadaadaaaaaaaaaaaaa
tag2 (2014-11-10)
aaaaaaaaaaaaaaaaaaaaaaaaaa
baaaaaaaadaadaaaaaaaaaaaaa
生成1:
tag1 (2014-11-30)
aaaaaaaaaaaaaaaaaaaaaaaaaa
baaaaaaaadaadaaaaaaaaaaaaa
tag1 (2014-11-12)
aaaaaaaaaaaaaaaaaaaaaaaaaa
baaaaaaaadaadaaaaaaaaaaaaa
生成2:
tag2 (2014-11-12)
aaaaaaaaaaaaaaaaaaaaaaaaaa
baaaaaaaadaadaaaaaaaaaaaaa
tag2 (2014-11-10)
aaaaaaaaaaaaaaaaaaaaaaaaaa
baaaaaaaadaadaaaaaaaaaaaaa
请问那位Python高手如何实现上面的字符串分割?谢谢!
其中aaaaaaaaaaaaaaaaaa是任意字符串 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询