This question shows research effort; it is useful and clear
0
This question does not show any research effort; it is unclear or not useful
Bookmark this question.
Show activity on this post.
嗨,我收到 TypeError,我只是不知道为什么......
x=float(40)
base=float(10)
math.log(x, [base])
Traceback (most recent call last):
File "<string>", line 1, in <fragment>
TypeError: a float is required