我正在尝试让我的代码变得专业和基于函数,我的代码如下: def NOWT(nowt):#prints the number of words in the file print("The diff. is :{}".format(diff))NOW(now)DIFF(data) 当我试图得到两个其他函数的输出之和时,我得到了这个错误
return fib(n-1) + fib(n-2)for n in range (1, 101):刚开始学习python为什么这会导致TypeError:不支持的操作数类型(S)用于/:'int‘和'NoneType’。同时,将范围打印更改为此工作。无论哪种方式,我都应该计算这个谎言,那么它为什么会导致类型错