回答此问题可获得 20 贡献值,回答如果被采纳可获得 50 分。
<pre><code>from collections import deque
def muladd(f1,f2_inv):
global ans
for j in f1:
ans = f1[j]*f2_inv[j]
f1 = [2,3,7,5,4,0,0,0,0,0,0,0,0]
f2 = [0,0,0,0,8,7,6,5,9,0,0,0,0]
conv = [0,0,0,0,0,0,0,0,0]
f2_inv = f2.reverse()
for i in conv:
conv[i]= muladd(f1,f2_inv)
print conv[i]
f1.rotate(1)
</code></pre>
<p>我无法运行代码。你知道吗</p>
<p>当我运行此代码时,我得到一个错误:</p>
<pre><code>'NoneType' object has no attribute '__getitem__'
</code></pre>