[英]Trying to average a list, but I don't know what is meant by the error: unsupported operand type(s) for +: 'int' and 'tuple'
[英]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.