如果我在我的项目中使用<script src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=AM_CHTML"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<div class="math-set">
<div class="slide">
<div>`KE_{rot} = \frac1 2 I \omega^2`</div>
</div>
<div class="slide">
<div>`\omega =sqrt(2\alpha \Delta degrees)`</div>
<div>`KE_{rot} = \frac1 2 I sqrt(2\alpha \Delta degrees)`</div>
</div>
<div class="slide">
<div>`\alpha = frac\{tau_{max}} {I}`</div>
</div>
<div class="slide">
<div>`KE_{rot} = \frac1 2 I \sqrt{(2 (\frac{\tau_{max}} {I}) \Delta degrees)}^2`</div>
<div>`KE_{rot} = \frac1 2 I \(2 (\frac{\tau_{max}} {I}) \Delta degrees)`</div>
</div>
<div class="slide">
<div>`KE_{rot} = \tau_{max}\Delta degrees`</div>
</div>
<div class="slide">
<div>`\tau_{max} = I \alpha`</div>
<div>`KE_{rot} = I \ \alpha \ \Delta degrees`</div>
</div>
</div>
,我的方法应该以什么类型自我对象?
mypy
答案 0 :(得分:3)
没什么,保持原样。
这是我从他们的文档中可以看出来的: https://mypy.readthedocs.io/en/latest/class_basics.html?highlight=self