Skip to content

Commit ccf3c1d

Browse files
committed
1 parent 907350d commit ccf3c1d

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -783,11 +783,11 @@ <h2 class="mt-0 mb-0 text-xl text-neutral-800 dark:text-neutral-300">
783783
</div>
784784

785785
</div>
786-
<section class="prose dark:prose-invert"><div id="typeit-0-1700039218562708956"></div>
786+
<section class="prose dark:prose-invert"><div id="typeit-0-1700040276011214816"></div>
787787

788788
<script>
789789
document.addEventListener("DOMContentLoaded", function () {
790-
new TypeIt("#typeit-0-1700039218562708956", {
790+
new TypeIt("#typeit-0-1700040276011214816", {
791791
strings: ["","The limits of my language mean the limits of my world.",""],
792792
speed: 100 ,
793793
lifeLike: false ,

index.json

+1-1
Large diffs are not rendered by default.

posts/loopcount/index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -1323,8 +1323,8 @@ <h3 class="relative group">快速找到结束值
13231323
<p>再代入回之前的万能公式<code>循环次数=(结束值-初始值)/步长+1</code>,那么就是</p>
13241324
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-Python" data-lang="Python"><span class="line"><span class="cl"><span class="n">count</span><span class="o">=</span><span class="p">(</span><span class="mi">5</span><span class="o">-</span><span class="mi">50</span><span class="p">)</span><span class="o">/-</span><span class="mi">3</span><span class="o">+</span><span class="mi">1</span> <span class="c1">#count=16</span>
13251325
</span></span></code></pre></div><p>当然你也可以直接让<code>循环次数=X+1</code>,因为<code>X</code>刚好是树木的间隔</p>
1326-
<p>⚠️下面的方法是分类讨论,因为还有情况,就是判定条件中&gt;和≥
1327-
如果你觉得列方程比较麻烦,你可以直接拿<code>(条件值-初始值)/步长</code>,得到一个数。</p>
1326+
<p>⚠️下面的方法是分类讨论,因为还有情况,就是判定条件中<code>&gt;</code><code></code></p>
1327+
<p>如果你觉得列方程比较麻烦,你可以直接拿<code>(条件值-初始值)/步长</code>,得到一个数。</p>
13281328
<ul>
13291329
<li>如果是<strong>整数</strong>,且判定条件中<code>&gt;</code>,刚刚上面我设的<code>X</code>的值=<code>该整数-1</code></li>
13301330
<li>如果是<strong>整数</strong>,且判定条件中<code></code>,刚刚上面我设的<code>X</code>的值=<code>该整数</code></li>

0 commit comments

Comments
 (0)