这道题,目前的我没什么好思路,直接转载一下leetcode题解中大佬的思路,留在这当个记录。之后回头好好看。 转载链接:https://leetcode.cn/problems/string-to-integer-atoi/solution/jin-liang-bu-shi-yong-ku-han-shu-nai-xin-diao-shi-/