摘要: r"\[( *[A-Za-z]*)*\]"def Split(sourceStr): """ Get a list from sourceStr split by spaces or new lines """ return re.split(" *",sourceStr.replace('\n', ' ').strip()) 阅读全文
posted @ 2012-08-28 09:39 G背包 阅读(261) 评论(0) 推荐(0) 编辑