擅长:python、mysql、java
<p>不,不,不,不,不</p>
<h2>没有</h2>
<p>使用可读的名称,而不是短名称。性能上的差异是绝对可以商榷的。在</p>
<hr/>
<pre><code>$ python -m timeit "i = 5" "i *= i"
10000000 loops, best of 3: 0.0938 usec per loop
$ python -m timeit "is_there_anything_to_be_gained_from_short_variable_names = 5" "is_there_anything_to_be_gained_from_short_variable_names *= is_there_anything_to_be_gained_from_short_variable_names"
10000000 loops, best of 3: 0.0927 usec per loop
</code></pre>
<p>具有讽刺意味的是,当在这台电脑上测量长变量名时,每次执行的速度要快~0.001 usec。在</p>