Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在磨床中有一个jython 脚本请求多个 url。我设置了 4 个线程。我希望第一个线程请求第一个 url,第二个线程请求第二个 url,依此类推。我该怎么做?
这很简单。
thread number = grinder.getThreadNumber() listOfUrls = ['xyz.com', 'abc.com', 'cde.com'] post(listOfUrls[threadnumber])
磨床螺纹编号从 0 开始。这只是一个示例。但希望你明白了..!! :)