我正在编写一个侦查工具,以使用线程模块使用线程扫描网络,但是线程给我一个类型错误,并告诉我线程arg部分中的每个字符都是单个参数
for host in nm.all_host():
threadx = threading.Thread(target=some_function,args=(host))
thread_list.appened(threadx)
thread.start()
TypeError:some_function()恰好接受1个参数(给定11个) 给定的11表示网关地址,它包含11个字符,包括“。”。 给定的13是指包含13个字符(包括“。”)的客户地址。