class Solution: def StrToInt(self, s): # write code here if not s: return 0 #标记符号 0是正数1是负数 flag = 0 #判断开头是否有正负标识 if s[0] == '+' : s = s[1:] elif s[0] == '-': s = s[1:] flag = 1 #如果int类...