Python 不断返回一个带有损坏字符的字符串。
Python
test = re.sub('handle(.*?)', '<verse osisID="lol">\1</verse>', 'handle a bunch of random text here.')
print test
我想要的是
<verse osisID="lol">a bunch of random text here.</verse>
我得到了什么
<verse osisID="lol">*broken character*</verse>a bunch of random text here.