擅长:python、mysql、java
<p>你可以:</p>
<pre><code>if not (u0 <= u <= u0+step):
u0 = u0+ step # change the condition until it is satisfied
else:
do sth. # condition is satisfied
</code></pre>
<p>使用循环:</p>
<pre><code>while not (u0 <= u <= u0+step):
u0 = u0+ step # change the condition until it is satisfied
do sth. # condition is satisfied
</code></pre>