我有一个function
def thread_execute_search_a_kanbna_index(kanban):
内容忽略
呼叫的时候使用
search_kanban_index = threading.Thread(target =thread_execute_search_a_kanbna_index ,args = (kanban))
search_kanban_index.start()
会出现
TypeError: thread_execute_search_a_kanbna_index() takes 1 positional argument
but 3 were given
但是只要在args中加上 , 成为
search_kanban_index = threading.Thread(target = thread_execute_search_a_kanbna_index ,args = (kanban ,))
就可以正确运行了
请问原因是什么??
或者可以提供关键字让我google
感谢