擅长:python、mysql、java
<p>只是:</p>
<pre><code>strats_having_fcs = {a.strategy: a.algorithmType for s in strategies for a in s.algorithms if a.algorithmType == AlgorithmTypeEnum.feedback_control.value}
</code></pre>
<p>看一下<a href="https://stackoverflow.com/q/8049798/9041661">this</a>关于列表理解的问题。对我来说,这澄清了很多这背后的逻辑是如何运作的</p>