def getPlural():
plural = soup.find("span", class_="form-of lang-de plural-form-of")
if plural == None:
return None
else:
return plural.get_text()
问题似乎出在我代码的这一部分。Pyscripter处理得很好,Python.exe返回Error: 'charmap' codec can't encode character \xe4 in position 9: character maps to undefined.
PyScripter和Python.exe运行相同的版本(3.3)。为什么会这样?我怎么解决这个问题?在
你可能会得到一个良好的运行与这样的东西:
或者
^{pr2}$+++++++++++++ 编辑:试试这个。。。在
相关问题 更多 >
编程相关推荐