We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
大佬,在看代码的时候看到 if t > self.create_num * self.loop_t / self.change_rate: break
if t > self.create_num * self.loop_t / self.change_rate: break
公式应该是 t > (生成数量×2)/改变率,就结束while循环 但是没有看懂o(╥﹏╥)o为什么需要这个,求指教!!
ps: self.loop_t 参数是什么意义啊,赋值为2是有什么原因么
The text was updated successfully, but these errors were encountered:
大佬,在看代码的时候看到 if t > self.create_num * self.loop_t / self.change_rate: break 公式应该是 t > (生成数量×2)/改变率,就结束while循环 但是没有看懂o(╥﹏╥)o为什么需要这个,求指教!! ps: self.loop_t 参数是什么意义啊,赋值为2是有什么原因么
防止没有添加到足够多的数据而一直陷入死循环,越大循环次数越多,越慢。不过通常情况下能快速获得指定数量的文本,所以一般不会执行break。存在一定概率很多次还没有获得指定数量的增强文本,则强制退出。
Sorry, something went wrong.
No branches or pull requests
大佬,在看代码的时候看到
if t > self.create_num * self.loop_t / self.change_rate: break
公式应该是 t > (生成数量×2)/改变率,就结束while循环
但是没有看懂o(╥﹏╥)o为什么需要这个,求指教!!
ps:
self.loop_t 参数是什么意义啊,赋值为2是有什么原因么
The text was updated successfully, but these errors were encountered: