class Solution(object): def countSegments(self, s): """ :type s: str :rtype: int """ return len(s.split())
class Solution(object): def countSegments(self, s): """ :type s: str :rtype: int """ return len(s.split())
转载于:https://www.cnblogs.com/zywscq/p/10569276.html