字符串转换整型python解答

【题目】 链接 【python】 class Solution(object): def myAtoi(self, str): """ :type str: str :rtype: int """ ans_str = '' str = str.strip() #去除字符串中首尾的空格 if str[0] == '-' or
相关文章
相关标签/搜索