标签: python function typeerror
How do I fix this error?! I'm not sure what to change about it. I tried to remove using float but its not working?
答案 0 :(得分:1)
更改此
mag_number = 10**(1.5(magnitude1-magnitude2))
对此,
mag_number = 10**(1.5*(magnitude1-magnitude2))