繁体   English   中英

我有错误 TypeError: unsupported operand type(s) for /: 'function' and 'int' 我不知道如何修复它

[英]I have the error, TypeError: unsupported operand type(s) for /: 'function' and 'int' and I don't know how to fix it

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

return fortLatSeconds

fortLatSeconds= fortLatSeconds(FORTLAT, fortLatDegree, fortLatMinutes)

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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM