【发布时间】:2020-10-18 17:22:18
【问题描述】:
有没有办法在 python 中使用 FOR 循环,以便可以更改范围值的检查条件。 基本上使用 FOR 循环将此代码转换为 python(不使用 while 循环或 if-break)。
for(int i = 1;i*i<=n;++i)
{
#code statements
}
【问题讨论】:
标签: python python-3.x algorithm for-loop data-structures