在这里,我有我的问题的相关代码片段:
from threading import Thread
.
.
.
def do_post(thread_no):
print "Starting thread no: " + thread_no + "\n"
.
.
.
for i in range(0,MAX_THREADS):
try:
t=Thread(target=do_post, args=('%d'%i))
t.start()
.
.
当 MAX_THREADS > 10 我收到错误消息:TypeError: do_post() takes exactly 1 argument (2 given)
如何让它接受 2 位数字?