我对此非常陌生,但我仍然不明白为什么这不起作用:
print("Multiple Finder 2.0.1")
print("MF2.0.1 will find the multiples of any number between point A and point B")
multiple = input("Find the multiples of what number: ")
startPoint = input("Enter Point A: ")
endPoint = input("Enter Point B: ")
x = startPoint
while x <= endPoint:
if x % str(multiple) == 0:
print(x)
x = x + 1
我得到这个错误
Traceback (most recent call last):
File "C:/Users/---", line 8, in <module>
if x % str(multiple) == 0:
TypeError: not all arguments converted during string formatting