......
items = re.findall(reg, html)
for item in items:
print item.encode("ut f-8")
if I use "print item", the results are "(u'\u5e7f\u5dd e-\u5929\u6cb3\u5 33a', u'0.8-1.5\u4e07/\u6708')"
so I use "print item.encode("ut f-8")",but it shows "'tuple' object has no attribute 'encode'"
items = re.findall(reg, html)
for item in items:
print item.encode("ut f-8")
if I use "print item", the results are "(u'\u5e7f\u5dd e-\u5929\u6cb3\u5 33a', u'0.8-1.5\u4e07/\u6708')"
so I use "print item.encode("ut f-8")",but it shows "'tuple' object has no attribute 'encode'"