Re: 请问一个正则的问题

joshua <[email protected]>
Newsgroups gmane.comp.python.chinese
Message-ID <[email protected]>
s[1:len(s)-1].split(')(')
huang falls wrote:
> Hello !
>
> str="(aaa)(bbb)(ccc)"
>
> 想将其转成一个list :
>
> [ "aaa", "bbb", "ccc" ]
>
> 请问如何做比较合适?
>
> Thanks!
>
> Regards
> Falls
> _______________________________________________
> python-chinese
> Post: send [email protected]
> Subscribe: send subscribe to [email protected]
> Unsubscribe: send unsubscribe to  [email protected]
> Detail Info: http://python.cn/mailman/listinfo/python-chinese

_______________________________________________
python-chinese
Post: send [email protected]
Subscribe: send subscribe to [email protected]
Unsubscribe: send unsubscribe to  [email protected]
Detail Info: http://python.cn/mailman/listinfo/python-chinese
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.