The result is a list of triples (operation, spos, dpos), where
operation is one of equal',replace', insert', ordelete'; spos
and dpos are position of characters in the first (source) and the
second (destination) strings. These are operations on signle
characters. In fact the returned list doesn't contain the equal',
but all the related functions accept both lists with and without
equal's.
您可以使用this模块-那里有一个
editops
函数,它返回一个列表,其中包含将一个字符串转换为另一个字符串所需的操作。在示例:
从文件中:
相关问题 更多 >
编程相关推荐