Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/353.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 我有一个错误,TypeError:for/:'不支持的操作数类型;功能';和';int';我不知道';我不知道如何修理它_Python_Function_Integer - Fatal编程技术网

Python 我有一个错误,TypeError:for/:'不支持的操作数类型;功能';和';int';我不知道';我不知道如何修理它

Python 我有一个错误,TypeError:for/:'不支持的操作数类型;功能';和';int';我不知道';我不知道如何修理它,python,function,integer,Python,Function,Integer,def fortLatSeconds(FORTLAT、fortLatDegree、fortLatMinutes): fortLatSeconds=圆形((FORTLAT-fortLatDegree-fortLatMinutes/60)*3600),4) fortLatSeconds=fortLatSeconds(FORTLAT,fortLatDegree,fortLatMinutes)与函数名相同的变量可能会导致严重问题,应尽量避免使用。我已尝试更改变量名,但仍然会出现相同的错误欢迎使用堆栈溢出

def fortLatSeconds(FORTLAT、fortLatDegree、fortLatMinutes): fortLatSeconds=圆形((FORTLAT-fortLatDegree-fortLatMinutes/60)*3600),4)


fortLatSeconds=fortLatSeconds(FORTLAT,fortLatDegree,fortLatMinutes)

与函数名相同的变量可能会导致严重问题,应尽量避免使用。

我已尝试更改变量名,但仍然会出现相同的错误欢迎使用堆栈溢出!在发布问题时,请确保这是一个最小的、可复制的示例
return fortLatSeconds