run方法里的循环这样写。 while(!isInterrupted()){ } 结束的时候调用 isInterrupted()就好了。
62,614
社区成员
307,326
社区内容
加载中
试试用AI创作助手写篇文章吧