擅长:python、mysql、java
<p>更正代码:</p>
<pre><code>def anagramlength(string1,string2):
temp = []
if len(string1)> len(string2):
x= string2
y=string1
else:
x = string1
y=string2
lenb=len(y)
for c in x:
if c in y:
temp.append(c)
y = list(y)
y[y.index(c)]= None
return (len(x)- len(temp)) + lenb - len(temp)
</code></pre>