我把它放进去,
def check(digit):
if digit % 2 == 0:
print("Even number")
check()
Run Code Online (Sandbox Code Playgroud)
作为回报我收到一个错误,说,
Traceback (most recent call last):
File "<pyshell#9>", line 1, in <module>
check()
TypeError: check() missing 1 required positional argument: 'digit'
Run Code Online (Sandbox Code Playgroud)
任何人都可以帮我弄清楚我做错了什么?
python ×1