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
相關文章
相關標籤/搜索