Leetcode 8. String to Integer (atoi) 字符串转整数 (atoi)

 使用正则表达式很是简单,代码简短,速度也不慢(68ms)在python中战胜94%python class Solution: def myAtoi(self, str): """ :type str: str :rtype: int """ import re pattern1 = re.c
相关文章
相关标签/搜索