Leetcode 459. Repeated Substring Pattern

class Solution(object):
    def repeatedSubstringPattern(self, s):
        return True if re.match(r'(w+)1+$', s) else False
原文地址:https://www.cnblogs.com/zywscq/p/10575881.html