不知道问题出哪了,保一个缩进错误
def func(L):
s = 0
C = 0
if isinstance(L,list) :
s = sum(L)
return s
elif isinstance(L,tuple):
for F in L:
C = F*C
return C
else :
print("Error")
print(func([1,2,3]))
print(func((1,2,3)))
IndentationError: unindent does not match any outer indentation level