标签:scribe question self span 正则匹配 sub == describe 实现
1 import re 2 class Solution: 3 # s字符串 4 def isNumeric(self, s): 5 # write code here 6 pattern = re.compile("[\\+\\-]?\\d*(\\.\\d+)?([eE][\\+\\-]?\\d+)?") 7 return pattern.match(s).group(0)==s
2020-01-01 15:53:51
标签:scribe question self span 正则匹配 sub == describe 实现
原文地址:https://www.cnblogs.com/NPC-assange/p/12129055.html