comefrom: <qiyuangong>165_Compare_Version_Numbers_1.py
code: def compareVersion( version1: str, version2: str) -> int:
      l1=list(map(int,version1.split('.')))
      l2=list(map(int,version2.split('.')))
      if l1==l2:
          return(0)
      
      a=len(l1)
      b=len(l2)
      
      if a>b:
          for i in range(a-b):
              l2.append("0")
      
      else:
          for i in range(b-a):
              l1.append("0")
          
      for i in range(len(l1)):
          if int(l1[i])>int(l2[i]):
              return(1)
          
          elif int(l1[i])<int(l2[i]):
              return(-1)
          
          else:
              pass
      
      return(0)
masked: def sample_funcname ( var_0 : str , var_2 : str ) -> int :
      var_8 = list ( map ( int , var_0.split ( '.' ) ) )
      var_9 = list ( map ( int , var_2.split ( '.' ) ) )
      if var_8 == var_9 :
          return ( 0 )
      var_12 = len ( var_8 )
      var_13 = len ( var_9 )
      if var_12 > var_13 :
          for var_15 in range ( var_12 - var_13 ) :
              var_9.append ( "0" )
      else :
          for var_15 in range ( var_13 - var_12 ) :
              var_8.append ( "0" )
      for var_15 in range ( len ( var_8 ) ) :
          if int ( var_8 [ var_15 ] ) > int ( var_9 [ var_15 ] ) :
              return ( 1 )
          elif int ( var_8 [ var_15 ] ) < int ( var_9 [ var_15 ] ) :
              return ( - 1 )
          else :
              pass
      return ( 0 )
  