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_1 : str ) -> int :
      var_2 = list ( map ( int , var_0.split ( '.' ) ) )
      var_3 = list ( map ( int , var_1.split ( '.' ) ) )
      if var_2 == var_3 :
          return ( 0 )
      var_4 = len ( var_2 )
      var_5 = len ( var_3 )
      if var_4 > var_5 :
          for var_6 in range ( var_4 - var_5 ) :
              var_3.append ( "0" )
      else :
          for var_6 in range ( var_5 - var_4 ) :
              var_2.append ( "0" )
      for var_6 in range ( len ( var_2 ) ) :
          if int ( var_2 [ var_6 ] ) > int ( var_3 [ var_6 ] ) :
              return ( 1 )
          elif int ( var_2 [ var_6 ] ) < int ( var_3 [ var_6 ] ) :
              return ( - 1 )
          else :
              pass
      return ( 0 )
  