摘要:
使用Python的r前缀,就不用考虑转义的问题了: 切分字符串 用正则表达式切分字符串比用固定的字符更灵活,请看正常的切分代码: 识别连续的空格,用正则表达式: 无论多少个空格都可以正常分割: 再加入;试试: 提取子串: 注意到group(0)永远是原始字符串,group(1)、group(2)…… 阅读全文
posted @ 2017-12-08 19:34
hozhangel
阅读(191)
评论(0)
推荐(0)
摘要:
https://leetcode.com/problems/permutations/description/ Given a collection of distinct numbers, return all possible permutations. For example,[1,2,3] 阅读全文
posted @ 2017-12-08 17:14
hozhangel
阅读(179)
评论(0)
推荐(0)
浙公网安备 33010602011771号