我是python的新手,目前正在研究它。我有这样的语法:
def main():
#with auto \1 & \2 on replacement
search_replace_mixed = {'eousisienl':'consistent'}
#no auto variable on replacement
search_replace_exact = {'eousisienl':'consistent'}
这将纠正一个拼写错误的单词,我不知道下一步是什么。我的源文档是.RTF,我需要一个python脚本来纠正上述语法中的一个单词。或者你有更好的方法。你能帮助我吗?在
有几种方法可以帮你解决这个问题。如果你只是想换一组拼写错误的单词,你可以这样拼凑起来:
这将搜索您的RTF文档并替换您的
serach_replace_exact
字典中特别列出的内容。在相关问题 更多 >
编程相关推荐