LINUX.ORG.RU

История изменений

Исправление vvn_black, (текущая версия) :

res = map(lambda x: x[0].replace('<td>', '').replace('</td>', '').strip(),
          filter(lambda x: x[0] != x[1],
                 zip(downloaded_list, template_list)))
print(map(lambda x: '%s, %s' % x, zip(res[::2], res[1::2])))
['Nu1, 546', 'Number one, 342', 'Nu3, 456']

Исходная версия vvn_black, :

res = map(lambda x: x[0].replace('<td>', '').replace('</td>', '').strip(),
          filter(lambda x: x[0] != x[1],
                 zip(downloaded_list.split('\n'), template_list.split('\n'))))
print(map(lambda x: '%s, %s' % x, zip(res[::2], res[1::2])))
['Nu1, 546', 'Number one, 342', 'Nu3, 456']