这是什么意思([i]+[0]*n)为什么是
我
和
0
在括号里?是吗?
previous, current = current, [i]+[0]*n
为什么我不能在下一行打印当前值?就像这样:
previous, current = current, [i]+[0]*n
print(current)
我有一个错误:
tabError:缩进中制表符和空格的使用不一致
#!/usr/bin/env python
# This is a straightforward implementation of a well-known algorithm, and thus
# probably shouldn't be covered by copyright to begin with. But in case it is,
# the author (Magnus Lie Hetland) has, to the extent possible under law,
# dedicated all copyright and related and neighboring rights to this software
# to the public domain worldwide, by distributing it under the CC0 license,
# version 1.0. This software is distributed without any warranty. For more
# information, see
def levenshtein(a,b):
"Calculates the Levenshtein distance between a a