擅长:python、mysql、java
<p><code>Clock.schedule_interval</code>调用的函数将在通过<code>partial</code>的参数之后接收<code>dt</code>作为参数。函数的签名是<code>getenviroment(self,radio)</code>,因此<code>radio</code>将被分配给<code>self</code>,而{<cd2>}将被分配给{<cd5>}。在</p>
<p>相反,请使用<code>lambda</code>:</p>
<pre><code>Clock.schedule_once(lambda dt: self.getenviroment(radio), 10)
</code></pre>