启朗 杨 added the comment:
sure,here is an simple string from the news1.xml
--
Added file: http://bugs.python.org/file24589/news1.xml
___
Python tracker
<http://bugs.python.org/issue14
启朗 杨 added the comment:
i use python to handle some string.
here is my code:
# -*- coding: utf-8 -*-
from lxml import etree
import collectcorpus
import re
doc = etree.parse("news1.xml")
root = doc.getroot()
children = root.getchildren()
flag = 1
for child in children:
if f
Changes by 启朗 杨 :
--
nosy: 启朗.杨
priority: normal
severity: normal
status: open
title: problem with re
___
Python tracker
<http://bugs.python.org/issue14
New submission from 启朗 杨 :
i use python to handle some string.
here is my code:
# -*- coding: utf-8 -*-
from lxml import etree
import collectcorpus
import re
doc = etree.parse("/home/harveyang/workspace/corpus/newsscrapy/news1.xml")
root = doc.getroot()
children = root.getchild