comefrom: <doocs>0408.Valid Word Abbreviation_1.py
code: def validWordAbbreviation( word: str, abbr: str) -> bool:
      i = j = 0
      m, n = len(word), len(abbr)
      while i < m:
          if j >= n:
              return False
          if word[i] == abbr[j]:
              i, j = i + 1, j + 1
              continue
          k = j
          while k < n and abbr[k].isdigit():
              k += 1
          t = abbr[j:k]
          if not t.isdigit() or t[0] == '0' or int(t) == 0:
              return False
          i += int(t)
          j = k
      return i == m and j == n
masked: def sample_funcname ( var_0 : str , var_1 : str ) -> bool :
      var_3 = var_2 = 0
      var_4 , var_5 = len ( var_0 ) , len ( var_1 )
      while var_3 < var_4 :
          if var_2 >= var_5 :
              return False
          if var_0 [ var_3 ] == var_1 [ var_2 ] :
              var_3 , var_2 = var_3 + 1 , var_2 + 1
              continue
          var_6 = var_2
          while var_6 < var_5 and var_1 [ var_6 ].isdigit ( ) :
              var_6 += 1
          var_7 = var_1 [ var_2 : var_6 ]
          if not var_7.isdigit ( ) or var_7 [ 0 ] == '0' or int ( var_7 ) == 0 :
              return False
          var_3 += int ( var_7 )
          var_2 = var_6
      return var_3 == var_4 and var_2 == var_5
  