替换 fnr, fnr_source, fnw = 'my.py.html', '产品清单.txt', 'my.py.res.html'd_source = {}with open(fnr_source, 'r', encoding='utf-8') as fr: for i in fr: ii = i.replace('\n', '') if len(ii.replace(' ', '')) == 0: continue if '<p>' not in ii: k = ii d_source…