在截止日期之后使用拼写检查器似乎返回空的lis

2024-05-20 13:36:26 发布

您现在位置:Python中文网/ 问答频道 /正文

{I>正在尝试读取某个程序的输出。这是我的测试码:

ATD.setDefaultKey('qg2324242424')
errors = list(ATD.checkDocument("Looking too the wter. Fixing your writing typoss."))
print(errors)
for error in errors:
    print("%s error for: %s **%s**" % (error.type, error.precontext, error.string))
    print("some suggestions: %s" % (", ".join(error.suggestions),))

{{generator只返回一个Miguel Ventura's python 3+ version运行我的代码。如能提供有关如何获得预期产量的任何帮助,我们将不胜感激。在


Tags: the程序foratderrorlisttooprint