<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>计数 on memory</title>
    <link>https://mem.leabol.top/tags/%E8%AE%A1%E6%95%B0/</link>
    <description>Recent content in 计数 on memory</description>
    <generator>Hugo</generator>
    <language>zh-cn</language>
    <lastBuildDate>Thu, 11 Jun 2026 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://mem.leabol.top/tags/%E8%AE%A1%E6%95%B0/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>基数与序数的规律</title>
      <link>https://mem.leabol.top/posts/dsa/%E5%9F%BA%E6%95%B0%E4%B8%8E%E5%BA%8F%E6%95%B0%E7%9A%84%E8%A7%84%E5%BE%8B/</link>
      <pubDate>Thu, 11 Jun 2026 00:00:00 +0000</pubDate>
      <guid>https://mem.leabol.top/posts/dsa/%E5%9F%BA%E6%95%B0%E4%B8%8E%E5%BA%8F%E6%95%B0%E7%9A%84%E8%A7%84%E5%BE%8B/</guid>
      <description>&lt;h2 id=&#34;基数与序数的规律&#34;&gt;基数与序数的规律&lt;/h2&gt;
&lt;p&gt;​	&lt;strong&gt;对于一个数据, 要先判断是基数还是序数, 如果要计数,还要考虑是否包括边界&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;基数: 绝对的,有一个基底数, 日常生活中基底是1; 编程中一般是0; 常见的基数概念有 数量, 个数, 体积, 面积, 时间段, 年龄(周岁), 分数&lt;/li&gt;
&lt;li&gt;序数: 相对的, 表示先后顺序, 常见的概念: 位次, 时间点
&lt;ul&gt;
&lt;li&gt;端点的开闭规律: 全开&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;​	基本的转换规律: &lt;code&gt; 基数 = 序数 - based + 1&lt;/code&gt;&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
