leetcode-165-比較版本號

題目描述: 方法一: class Solution: def compareVersion(self, version1: str, version2: str) -> int: v1, v2 = ([*map(int, v.split('.'))] for v in (version1, version2)) d = len(v2) - len(v1)
相關文章
相關標籤/搜索