<p>有没有办法让这个逻辑:</p>
<p>如果条件不成立,我需要做一次陈述,如下所示:</p>
<pre><code>while 1:
statement1
statement2
if condition: --condition is true here
statement3
else --condition is false here
statement3 --I need to do this "statement3" one time only
if another condition:
break
</code></pre>
<p>我的意思是,如果speed>;3或者只发送一次数据,我需要发送数据。在</p>
<p>有什么帮助吗</p>
<p>我解决了。我只需要在“Alex Martelli”的解中添加额外的“neverdone=True”</p>
^{pr2}$
<p>非常感谢Alex Martelli。在</p>