<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
    <channel>
        <title>BUBBLE BLOG</title>
        <link>https://blog.superhx.cn/</link>
        <description>🐹🐰🐭🐶🐷🐨</description>
        <lastBuildDate>Sat, 16 May 2026 00:52:31 GMT</lastBuildDate>
        <docs>https://validator.w3.org/feed/docs/rss2.html</docs>
        <generator>https://github.com/jpmonette/feed</generator>
        <language>zh-CN</language>
        <copyright>All rights reserved 2026, bubble</copyright>
        <item>
            <title><![CDATA[Linux]]></title>
            <link>https://blog.superhx.cn/article/1970781d-f63c-4439-98b3-c001a3de2486</link>
            <guid>https://blog.superhx.cn/article/1970781d-f63c-4439-98b3-c001a3de2486</guid>
            <pubDate>Tue, 05 Jul 2022 00:00:00 GMT</pubDate>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-1970781df63c443998b3c001a3de2486"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-77f7674d468d4d7eac39a957b1c82819" data-id="77f7674d468d4d7eac39a957b1c82819"><span><div id="77f7674d468d4d7eac39a957b1c82819" class="notion-header-anchor"></div><a class="notion-hash-link" href="#77f7674d468d4d7eac39a957b1c82819" title="Linux概况"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">Linux概况</span></span></h2><ul class="notion-list notion-list-disc notion-block-79aa844818714040af216b0b61131e02"><li>Linux不靠扩展名区分文件类型，以下为约定俗成的扩展名。</li><ul class="notion-list notion-list-disc notion-block-79aa844818714040af216b0b61131e02"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1bbd37c21fbb80738015f262917d2c62"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aaa2542ae-47a4-4eb0-9cd4-ac4979d631ad%3Aimage.png?table=block&amp;id=1bbd37c2-1fbb-8073-8015-f262917d2c62&amp;t=1bbd37c2-1fbb-8073-8015-f262917d2c62" alt="notion image" loading="lazy" decoding="async"/></div></figure></ul></ul><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-b02a60c3a8dd48709d7b12263227894c" data-id="b02a60c3a8dd48709d7b12263227894c"><span><div id="b02a60c3a8dd48709d7b12263227894c" class="notion-header-anchor"></div><a class="notion-hash-link" href="#b02a60c3a8dd48709d7b12263227894c" title="命令基本格式"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">命令基本格式</span></span></h2><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-2f8b76b14a5a4e00b02f3df034891576" data-id="2f8b76b14a5a4e00b02f3df034891576"><span><div id="2f8b76b14a5a4e00b02f3df034891576" class="notion-header-anchor"></div><a class="notion-hash-link" href="#2f8b76b14a5a4e00b02f3df034891576" title="查询目录中的内容"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">查询目录中的内容</span></span></h2><div class="notion-text notion-block-fe219a55ce3a473ea75633f93d4a2385"><code class="notion-inline-code">ls [选项] [文件或目录]</code></div><div class="notion-text notion-block-e92ab84442ef459a8a183e5d5c49cd66">选项：</div><div class="notion-text notion-block-55267e783c5543a3a9c4d4f097b2afe6"><code class="notion-inline-code">-a</code>显示所有文件，包括隐藏文件</div><div class="notion-text notion-block-1aeac8aca78045fa982d9bbce3eb5b00"><code class="notion-inline-code">-l</code>显示详细信息</div><div class="notion-text notion-block-3764c31fcc34415689dcc51cda9cc086"><code class="notion-inline-code">-d</code>查看目录属性</div><div class="notion-text notion-block-4c0d611669864f6bb3265153bfd3de5d"><code class="notion-inline-code">-h</code>人性化显示文件大小</div><div class="notion-text notion-block-de8c546b5e824ea1acd30f5fbc093512"><code class="notion-inline-code">-i</code> 显示inode</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1bbd37c21fbb80f29406f3559d70f54e"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A9f4dd3ba-5ad1-48c3-961a-239f579c1319%3Aimage.png?table=block&amp;id=1bbd37c2-1fbb-80f2-9406-f3559d70f54e&amp;t=1bbd37c2-1fbb-80f2-9406-f3559d70f54e" alt="notion image" loading="lazy" decoding="async"/></div></figure><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-9d364179f786468387ca8f41f910a4dc" data-id="9d364179f786468387ca8f41f910a4dc"><span><div id="9d364179f786468387ca8f41f910a4dc" class="notion-header-anchor"></div><a class="notion-hash-link" href="#9d364179f786468387ca8f41f910a4dc" title="文件处理命令"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">文件处理命令</span></span></h2><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-0a2053eb0cdc4f4d842db2ce4bd2cb9a" data-id="0a2053eb0cdc4f4d842db2ce4bd2cb9a"><span><div id="0a2053eb0cdc4f4d842db2ce4bd2cb9a" class="notion-header-anchor"></div><a class="notion-hash-link" href="#0a2053eb0cdc4f4d842db2ce4bd2cb9a" title="目录处理命令"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">目录处理命令</span></span></h3><ul class="notion-list notion-list-disc notion-block-05b3f45a839546c4aacbed82b6fca188"><li><code class="notion-inline-code">mkdir -p [目录名]</code><code class="notion-inline-code">p</code>递归创建</li></ul><ul class="notion-list notion-list-disc notion-block-60afe91c814c426e993ee2b5c8b41bb7"><li><code class="notion-inline-code">cd [目录]</code></li></ul><ul class="notion-list notion-list-disc notion-block-53304b0a0e894807b82d326b429c0432"><li><code class="notion-inline-code">pwd</code>：查询所在目录位置</li></ul><ul class="notion-list notion-list-disc notion-block-171f755e54074cb69f56fc63c14b7a63"><li><code class="notion-inline-code">rmdir</code>：删除空目录</li></ul><ul class="notion-list notion-list-disc notion-block-6f5bd36a84b14d1e8900f5567b32a6c0"><li><code class="notion-inline-code">rm -rf</code>：删除文件或目录<code class="notion-inline-code">r</code>删除目录<code class="notion-inline-code">f</code>强制</li></ul><ul class="notion-list notion-list-disc notion-block-178d5a9d67f6436f91562943e1e6fcd1"><li><code class="notion-inline-code">cp [选项] [原文件或目录] [目标目录]</code>：复制<code class="notion-inline-code">r</code>复制目录<code class="notion-inline-code">p</code>连带文件属性复制<code class="notion-inline-code">d</code>若源文件是链接文件，则复制链接属性<code class="notion-inline-code">a</code>相当于<code class="notion-inline-code">dpr</code> (复制的文件和源文件一模一样，包括时间)</li></ul><ul class="notion-list notion-list-disc notion-block-af7bf4a0c42e4637b6358dba4a4942ca"><li><code class="notion-inline-code">mv [源文件或目录] [目标目录]</code>：剪切或改名命令</li></ul><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-ddfa4680ddef436fa3842c2bbccd8cc8" data-id="ddfa4680ddef436fa3842c2bbccd8cc8"><span><div id="ddfa4680ddef436fa3842c2bbccd8cc8" class="notion-header-anchor"></div><a class="notion-hash-link" href="#ddfa4680ddef436fa3842c2bbccd8cc8" title=" 权限"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"> 权限</span></span></h3><div class="notion-row"><a class="notion-bookmark notion-block-1bbd37c21fbb8018a65fef370f5944a6" href="https://www.runoob.com/linux/linux-comm-chmod.html" target="_blank" rel="noopener noreferrer"><div><div class="notion-bookmark-title">Linux chmod 命令 | 菜鸟教程</div><div class="notion-bookmark-description">Linux chmod命令 Linux 命令大全  Linux chmod（英文全拼：change mode）命令是控制用户对文件的权限的命令  Linux/Unix 的文件调用权限分为三级 : 文件所有者（Owner）、用户组（Group）、其它用户（Other Users）。    只有文件所有者和超级用户可以修改文件或目录的权限。可以使用绝对模式（八进制数字模式），符号模式指定文件的权限。  使用权限 : 所有使用者  语法 ch..</div><div class="notion-bookmark-link"><div class="notion-bookmark-link-icon"><img src="https://www.notion.so/image/https%3A%2F%2Fstatic.jyshare.com%2Fimages%2Ficon%2Fmobile-icon.png?table=block&amp;id=1bbd37c2-1fbb-8018-a65f-ef370f5944a6&amp;t=1bbd37c2-1fbb-8018-a65f-ef370f5944a6" alt="Linux chmod 命令 | 菜鸟教程" loading="lazy" decoding="async"/></div><div class="notion-bookmark-link-text">https://www.runoob.com/linux/linux-comm-chmod.html</div></div></div></a></div><div class="notion-text notion-block-32747e821c8a41a5ac15f4cc549963ed"><code class="notion-inline-code">chomd</code>: change mode</div><div class="notion-text notion-block-96585d5230844820922baf40351517c3">文件调用权限分为三级 : 文件所有者（Owner）、用户组（Group）、其它用户（Other Users）。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-0249a89a53a04b528ad5ab4a3e2c1a63"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2Ff49e6c6a-4871-41f2-a2e0-20fbd03c9e52%2F62b284cd-1029-44a2-b5e7-424fe1398296%2FUntitled.png?table=block&amp;id=0249a89a-53a0-4b52-8ad5-ab4a3e2c1a63&amp;t=0249a89a-53a0-4b52-8ad5-ab4a3e2c1a63&amp;width=708&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-b85b200bc9bb4cfeacc79fa45427180d">只有文件所有者和超级用户可以修改文件或目录的权限。可以使用绝对模式（八进制数字模式），符号模式指定文件的权限。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-d4f72626b9544f52aba619b0457bfb7d"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2Ff49e6c6a-4871-41f2-a2e0-20fbd03c9e52%2F8cbf78b7-abc9-4d87-89c1-396348a71318%2FUntitled.png?table=block&amp;id=d4f72626-b954-4f52-aba6-19b0457bfb7d&amp;t=d4f72626-b954-4f52-aba6-19b0457bfb7d&amp;width=708&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-578c823ab0624f3a9cda3e63ad51cacf"><code class="notion-inline-code">chmod -R 777 folder</code> 对目前目录下的所有文件与子目录进行相同的权限变更(即以递归的方式逐个变更)</div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-da23948d13374578a7cadd84fbbef0a0" data-id="da23948d13374578a7cadd84fbbef0a0"><span><div id="da23948d13374578a7cadd84fbbef0a0" class="notion-header-anchor"></div><a class="notion-hash-link" href="#da23948d13374578a7cadd84fbbef0a0" title="常见目录作用"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">常见目录作用</span></span></h2><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1239d939859545548e7d5da191869bfa" data-id="1239d939859545548e7d5da191869bfa"><span><div id="1239d939859545548e7d5da191869bfa" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1239d939859545548e7d5da191869bfa" title="链接命令"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">链接命令</span></span></h2><div class="notion-text notion-block-d1c891e8b8ba48eba046d78f91f0cb89"><code class="notion-inline-code">ln [参数][源文件或目录][目标文件或目录]</code></div><div class="notion-text notion-block-a427e9898e7f47398834cbdf4d35bd01"><b>软链接</b>：</div><ul class="notion-list notion-list-disc notion-block-fa1fd7b903784f309bd084a5c564bbb3"><li>1.软链接，以路径的形式存在。类似于Windows操作系统中的快捷方式</li></ul><ul class="notion-list notion-list-disc notion-block-aa832df712da4d349cea8691d2098f3e"><li>2.软链接可以 跨文件系统 ，硬链接不可以</li></ul><ul class="notion-list notion-list-disc notion-block-9b09334baa1f4056a1e85c32acfec277"><li>3.软链接可以对一个不存在的文件名进行链接</li></ul><ul class="notion-list notion-list-disc notion-block-a9b001f44cb84e7f8c0758aae560822f"><li>4.软链接可以对目录进行链接</li></ul><div class="notion-text notion-block-78c455d923bb4d18be0bf640e4c111cf"><b>硬链接</b>：</div><ul class="notion-list notion-list-disc notion-block-f8975a27ad0f4fc585d2663dd993e67b"><li>1.硬链接，以文件副本的形式存在。但不占用实际空间。</li></ul><ul class="notion-list notion-list-disc notion-block-89c070f64812472da4b8df068da8ca3f"><li>2.不允许给目录创建硬链接</li></ul><ul class="notion-list notion-list-disc notion-block-9acee6f2909242689e9c2ac177b8bfb7"><li>3.硬链接只有在同一个文件系统中才能创建</li></ul><div class="notion-text notion-block-0169692d41e84b58b8e06d047a213422">命令参数</div><div class="notion-text notion-block-548fe6f4440b45a8b100a5151d42e794"><b>必要参数</b>：</div><ul class="notion-list notion-list-disc notion-block-3f77d4b7b4564c7f8d7d928220084460"><li>b 删除，覆盖以前建立的链接</li></ul><ul class="notion-list notion-list-disc notion-block-f97703ec5aab4b33aad45d9689e6a468"><li>d 允许超级用户制作目录的硬链接</li></ul><ul class="notion-list notion-list-disc notion-block-f2b818adf915498ea83af0aa5dd82d6d"><li>f 强制执行</li></ul><ul class="notion-list notion-list-disc notion-block-50de1d36b74f42f8bdc933b216d4702b"><li>i 交互模式，文件存在则提示用户是否覆盖</li></ul><ul class="notion-list notion-list-disc notion-block-c7a1079800e5444dbb4f0aafee08bce5"><li>n 把符号链接视为一般目录</li></ul><ul class="notion-list notion-list-disc notion-block-57e3b332e0564e11b72160dc958db691"><li>s 软链接(符号链接)</li></ul><ul class="notion-list notion-list-disc notion-block-cb03df7d8f384dcb8b171ce128c90064"><li>v 显示详细的处理过程</li></ul><div class="notion-text notion-block-7e755c0618f94ce2b7f615e05b630ca0"><b>选择参数</b>：</div><ul class="notion-list notion-list-disc notion-block-2cf5589f9b4c472694c2b4a726a75032"><li>S &quot;-S&lt;字尾备份字符串&gt; &quot;或 &quot;--suffix=&lt;字尾备份字符串&gt;&quot;</li></ul><ul class="notion-list notion-list-disc notion-block-11b4dacee7f1428199550e572a04b494"><li>V &quot;-V&lt;备份方式&gt;&quot;或&quot;--version-control=&lt;备份方式&gt;&quot;</li></ul><ul class="notion-list notion-list-disc notion-block-c2dd5e49579e49c9a19910516e0f5e7a"><li>-help 显示帮助信息</li></ul><ul class="notion-list notion-list-disc notion-block-43150793671248cebbe92e1492d3081a"><li>-version 显示版本信息</li></ul><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-0fa0c809dcf642268c1ebd34d53e1a41" data-id="0fa0c809dcf642268c1ebd34d53e1a41"><span><div id="0fa0c809dcf642268c1ebd34d53e1a41" class="notion-header-anchor"></div><a class="notion-hash-link" href="#0fa0c809dcf642268c1ebd34d53e1a41" title="压缩命令"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">压缩命令</span></span></h2><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-15c47e0f8027409da9789dc3e9c40518" data-id="15c47e0f8027409da9789dc3e9c40518"><span><div id="15c47e0f8027409da9789dc3e9c40518" class="notion-header-anchor"></div><a class="notion-hash-link" href="#15c47e0f8027409da9789dc3e9c40518" title=".zip"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">.zip</span></span></h2><ul class="notion-list notion-list-disc notion-block-24403be85ec1452b94f3fb26df329b62"><li>压缩文件<code class="notion-inline-code">zip 压缩文件名 源文件</code></li></ul><ul class="notion-list notion-list-disc notion-block-c8dd07a02bfd46708da3b94521eb2d51"><li>压缩目录<code class="notion-inline-code">zip -r 压缩文件名 源目录</code></li></ul><ul class="notion-list notion-list-disc notion-block-5e8d73103a45458d9725935fb72dfc56"><li>解压缩.zip文件<code class="notion-inline-code">unzip 压缩文件</code></li></ul><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-fbcb7d6914b04191a60d7a48ccee1807" data-id="fbcb7d6914b04191a60d7a48ccee1807"><span><div id="fbcb7d6914b04191a60d7a48ccee1807" class="notion-header-anchor"></div><a class="notion-hash-link" href="#fbcb7d6914b04191a60d7a48ccee1807" title=".gz"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">.gz</span></span></h2><ul class="notion-list notion-list-disc notion-block-9754834d1d0b4629bf9fce5335bd34cd"><li>压缩为.gz格式的压缩文件，源文件会消失。<code class="notion-inline-code">gzip 源文件</code></li></ul><ul class="notion-list notion-list-disc notion-block-50e47f2245414e47acff126bb4728411"><li>压缩为.gz格式，源文件保留。<code class="notion-inline-code">gzip -c 源文件 &gt; 压缩文件</code></li></ul><ul class="notion-list notion-list-disc notion-block-61dd8c38b9dc404381e0c25e43db392a"><li>压缩目录下所有的子文件，<b>但是不能压缩目录</b>。<code class="notion-inline-code">gzip -r 目录</code></li></ul><ul class="notion-list notion-list-disc notion-block-bd585e7916f14e608ff73353835fbd6c"><li>解压缩文件<code class="notion-inline-code">gzip -d 压缩文件</code><code class="notion-inline-code">gunzip 压缩文件</code></li></ul><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-f12b5b0fb2324bdc8d2e0839a05c8bc3" data-id="f12b5b0fb2324bdc8d2e0839a05c8bc3"><span><div id="f12b5b0fb2324bdc8d2e0839a05c8bc3" class="notion-header-anchor"></div><a class="notion-hash-link" href="#f12b5b0fb2324bdc8d2e0839a05c8bc3" title=".bz2"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">.bz2</span></span></h2><ul class="notion-list notion-list-disc notion-block-2f28e3184e8749758f364ac9a985f40c"><li>压缩为.bz2格式，不保留源文件。<code class="notion-inline-code">bzip2 源文件</code></li></ul><ul class="notion-list notion-list-disc notion-block-74957750f9df41c899f55958a6cca8be"><li>压缩并保留源文件。<code class="notion-inline-code">bzip2 -k 源文件</code></li></ul><ul class="notion-list notion-list-disc notion-block-0b4743174762477fa77007228474d5ea"><li>bzip2 命令不能压缩目录</li></ul><ul class="notion-list notion-list-disc notion-block-2a57b37a185b4454938141cb969a114b"><li>解压缩，-k 保留压缩文件<code class="notion-inline-code">bzip2 -d 压缩文件</code> 或者 <code class="notion-inline-code">bunzip2 压缩文件</code></li></ul><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-b80a040ab43a446abfc3a336d6e200f0" data-id="b80a040ab43a446abfc3a336d6e200f0"><span><div id="b80a040ab43a446abfc3a336d6e200f0" class="notion-header-anchor"></div><a class="notion-hash-link" href="#b80a040ab43a446abfc3a336d6e200f0" title="打包命令tar"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">打包命令tar</span></span></h2><ul class="notion-list notion-list-disc notion-block-5a94fe3d12584defa8eb6abe0c68e304"><li><code class="notion-inline-code">tar -cvf 打包文件名 源文件</code></li></ul><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-80ca3fe6d0e74152a3722686d376f0c6" data-id="80ca3fe6d0e74152a3722686d376f0c6"><span><div id="80ca3fe6d0e74152a3722686d376f0c6" class="notion-header-anchor"></div><a class="notion-hash-link" href="#80ca3fe6d0e74152a3722686d376f0c6" title="解打包命令"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">解打包命令</span></span></h2><ul class="notion-list notion-list-disc notion-block-b8c2fda293b44cfa8929e99bc7b5e26f"><li><code class="notion-inline-code">tar -xvf 打包文件名</code><code class="notion-inline-code">x 解打包</code></li></ul><div class="notion-text notion-block-4370137ca7d34cdfa3ff8b9edee32280">合并命令（打包并压缩）<!-- -->1.打包为.tar格式，并压缩为.gz格式</div><div class="notion-text notion-block-a1eeb3dcb2414e6b87467e8fb0fe8737"><code class="notion-inline-code">curl</code>是一个利用URL规则在命令行下工作的文件传输工具。它支持文件的上传和下载，所以是综合传输工具，但按传统，习惯称curl为下载工具。</div><div class="notion-text notion-block-9883b031dfe54e7f87a89f706cc68578"><code class="notion-inline-code">cat file</code> 打印file内容。</div><div class="notion-text notion-block-f5a0050ae9fb4327844713ba254d820b"><code class="notion-inline-code">netstat -ntlp</code> 查看端口占用情况</div><div class="notion-text notion-block-d6d0681b3702429abbb2d554465b8dde"><code class="notion-inline-code">kill pid</code> 杀进程</div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-aa7b0eaccf544ce4bb03ea4e9c1ef0d3" data-id="aa7b0eaccf544ce4bb03ea4e9c1ef0d3"><span><div id="aa7b0eaccf544ce4bb03ea4e9c1ef0d3" class="notion-header-anchor"></div><a class="notion-hash-link" href="#aa7b0eaccf544ce4bb03ea4e9c1ef0d3" title="安装gcc"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">安装gcc</span></span></h2><div class="notion-text notion-block-1425af03b59f48c48649952d952cd58d"><code class="notion-inline-code">yum -y install gcc automake autoconf libtool make</code></div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-e722a1ce1203440ebfa190bac8b0c715" data-id="e722a1ce1203440ebfa190bac8b0c715"><span><div id="e722a1ce1203440ebfa190bac8b0c715" class="notion-header-anchor"></div><a class="notion-hash-link" href="#e722a1ce1203440ebfa190bac8b0c715" title="安装openssl"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">安装openssl</span></span></h2><ol start="1" class="notion-list notion-list-numbered notion-block-85494bbbf70b4f4faaeff74b62d9d12d" style="list-style-type:decimal"><li><code class="notion-inline-code">wget http://www.openssl.org/source/openssl-1.0.2f.tar.gz</code></li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-01e8a53ee13144149addd7f1c37318fd" style="list-style-type:decimal"><li><code class="notion-inline-code">tar -xzf openssl-1.0.2f.tar.gz</code></li></ol><ol start="3" class="notion-list notion-list-numbered notion-block-28827acc671c41d9a888b64b87e851fd" style="list-style-type:decimal"><li><code class="notion-inline-code">cd openssl-1.0.2f</code></li></ol><ol start="4" class="notion-list notion-list-numbered notion-block-50f2aa8b64444735af9374053a4156f2" style="list-style-type:decimal"><li><code class="notion-inline-code">mkdir /usr/local/openssl./config --prefix=/usr/local/openssl</code></li></ol><ol start="5" class="notion-list notion-list-numbered notion-block-6eab70ccccc74ab6a83cbdd57429420f" style="list-style-type:decimal"><li><code class="notion-inline-code">make</code></li></ol><ol start="6" class="notion-list notion-list-numbered notion-block-0dcb37b88b26426d85e0670ac1724e65" style="list-style-type:decimal"><li><code class="notion-inline-code">make install</code></li></ol><ol start="7" class="notion-list notion-list-numbered notion-block-f4be1d2d9a574699a2a9b375c0731cfb" style="list-style-type:decimal"><li>查看路径<code class="notion-inline-code">which openssl</code></li></ol><div class="notion-text notion-block-68da38608c8d49268a28d14b0a423fc6"><code class="notion-inline-code">/usr/local/openssl/bin/openssl</code></div><ol start="8" class="notion-list notion-list-numbered notion-block-4fde9661db204d8aa09b8e115d2ad8d8" style="list-style-type:decimal"><li>为了使用方便，以及以后版本更新方便，可以创建软连接，如下：</li></ol><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-92e346310d244ebb8e1f168e68cb9e3a" data-id="92e346310d244ebb8e1f168e68cb9e3a"><span><div id="92e346310d244ebb8e1f168e68cb9e3a" class="notion-header-anchor"></div><a class="notion-hash-link" href="#92e346310d244ebb8e1f168e68cb9e3a" title="安装nodejs"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">安装nodejs</span></span></h2><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-f99d897818c94bb882400964299a7882" data-id="f99d897818c94bb882400964299a7882"><span><div id="f99d897818c94bb882400964299a7882" class="notion-header-anchor"></div><a class="notion-hash-link" href="#f99d897818c94bb882400964299a7882" title="方法一（😊推荐）"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">方法一（😊推荐）</span></span></h3><ol start="1" class="notion-list notion-list-numbered notion-block-2059f45891834323b36c2267065f6ce8" style="list-style-type:decimal"><li><code class="notion-inline-code">$ wget https://nodejs.org/dist/v9.11.1/node-v9.11.1-linux-x64.tar.xz</code></li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-ccc644516384452fb1b18caa5636e186" style="list-style-type:decimal"><li><code class="notion-inline-code">$ tar -xvf node-v9.11.1-linux-x64.tar.xz</code></li></ol><ol start="3" class="notion-list notion-list-numbered notion-block-db12b475121c4213ac3c50701e26a97c" style="list-style-type:decimal"><li><code class="notion-inline-code">$ cd node-v8.0.0-linux-x64/bin &amp;&amp; ls</code></li></ol><ol start="4" class="notion-list notion-list-numbered notion-block-dfbc365a085a498092dff8d0b044ee24" style="list-style-type:decimal"><li>测试<code class="notion-inline-code">$ ./node -v</code></li></ol><ol start="5" class="notion-list notion-list-numbered notion-block-95265e1217524e64aefefce28860fe52" style="list-style-type:decimal"><li>全局使用，建立链接<code class="notion-inline-code">$ ln -s /www/node-v8.0.0-linux-x64/bin/node /usr/local/bin/node$ ln -s /www/node-v8.0.0-linux-x64/bin/npm /usr/local/bin/npm</code></li></ol><ol start="6" class="notion-list notion-list-numbered notion-block-bf9784d1926846e3916aab618b406f68" style="list-style-type:decimal"><li><code class="notion-inline-code">export PATH=$PATH:/your/new/bin/path</code></li></ol><ol start="7" class="notion-list notion-list-numbered notion-block-add8da64ad1942fc951f07ebbc61c712" style="list-style-type:decimal"><li>配置淘宝镜像</li></ol><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-d960a18cdd23442892b3d8a53c692863" data-id="d960a18cdd23442892b3d8a53c692863"><span><div id="d960a18cdd23442892b3d8a53c692863" class="notion-header-anchor"></div><a class="notion-hash-link" href="#d960a18cdd23442892b3d8a53c692863" title="方法二"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">方法二</span></span></h3><ol start="1" class="notion-list notion-list-numbered notion-block-7042deb3864746608cdbeb2a2fafb48c" style="list-style-type:decimal"><li><code class="notion-inline-code">$ curl --silent --location https://rpm.nodesource.com/setup_9.x | sudo bash -</code></li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-65ab0b7446dc4a16b1eb7a69271aa12e" style="list-style-type:decimal"><li><code class="notion-inline-code">$ sudo yum -y install nodejs</code></li></ol><ol start="3" class="notion-list notion-list-numbered notion-block-d84cf1ccda5a469ebe9bd54bf690fb49" style="list-style-type:decimal"><li>或许还需要构建工具</li></ol><div class="notion-text notion-block-a969662e335b4489b48816f96fdd4531"><code class="notion-inline-code">sudo yum install gcc-c++ make  </code></div><div class="notion-text notion-block-37e05daf24fd4123a01aca2e8fac4cdb"><code class="notion-inline-code"># or: </code></div><div class="notion-text notion-block-d608fd0b31ec4fd098918244da4423d3"><code class="notion-inline-code">sudo yum groupinstall &#x27;Development Tools&#x27;</code></div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-d05e64638ddc4b3caf3d9a08f8fb2476" data-id="d05e64638ddc4b3caf3d9a08f8fb2476"><span><div id="d05e64638ddc4b3caf3d9a08f8fb2476" class="notion-header-anchor"></div><a class="notion-hash-link" href="#d05e64638ddc4b3caf3d9a08f8fb2476" title="方法三"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">方法三</span></span></h3><div class="notion-row"><a class="notion-bookmark notion-block-fc280a0f2dea4564bcd2184127375903" href="https://help.aliyun.com/document_detail/60338.html" target="_blank" rel="noopener noreferrer"><div><div class="notion-bookmark-title">5分钟快速入门</div><div class="notion-bookmark-description">验证安装是否成功,需要确保 which node 和 which agenthub的路径中包括.tnvm 即可。 II.</div><div class="notion-bookmark-link"><div class="notion-bookmark-link-icon"><img src="https://www.notion.so/image/https%3A%2F%2Fimg.alicdn.com%2Ftfs%2FTB1_ZXuNcfpK1RjSZFOXXa6nFXa-32-32.ico?table=block&amp;id=fc280a0f-2dea-4564-bcd2-184127375903&amp;t=fc280a0f-2dea-4564-bcd2-184127375903" alt="5分钟快速入门" loading="lazy" decoding="async"/></div><div class="notion-bookmark-link-text">https://help.aliyun.com/document_detail/60338.html</div></div></div></a></div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-b0a031970c76438b96e3746cc2cec142" data-id="b0a031970c76438b96e3746cc2cec142"><span><div id="b0a031970c76438b96e3746cc2cec142" class="notion-header-anchor"></div><a class="notion-hash-link" href="#b0a031970c76438b96e3746cc2cec142" title="安装yarn"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">安装yarn</span></span></h2><div class="notion-text notion-block-453faba8660b4cb38e859c3fcdd1caf0"><code class="notion-inline-code">$ cd /opt$ wget https://yarnpkg.com/latest.tar.gz</code></div><div class="notion-text notion-block-3998f39666904f5b8b62555ea6b2e44f"><code class="notion-inline-code">$ tar zvxf latest.tar.gz</code></div><div class="notion-text notion-block-7397baf9740a4fdc9e446f23caf567e1"><code class="notion-inline-code">$ ln -s path/bin/yarn /usr/bin/yarn</code></div><div class="notion-text notion-block-b6ca2802125e4910b95a162a5547379b">OR</div><div class="notion-text notion-block-6bff0e4089964b34b662b7499e5e8888"><code class="notion-inline-code">$ npm i -g yarn</code> </div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1362863c3ac44c8eb8d75a4c012ce81b" data-id="1362863c3ac44c8eb8d75a4c012ce81b"><span><div id="1362863c3ac44c8eb8d75a4c012ce81b" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1362863c3ac44c8eb8d75a4c012ce81b" title="安装 mongodb"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">安装 mongodb</span></span></h2><div class="notion-text notion-block-cd8996a190ef4f03beed180832f71567"><a class="notion-link" href="https://docs.mongodb.com/manual/tutorial/install-mongodb-on-red-hat/" target="_blank" rel="noopener noreferrer">官网安装方法链接</a></div><ul class="notion-list notion-list-disc notion-block-6c4af69d115f48a2af5b8d6b7ba7e67d"><li>配置包管理系统（yum）<!-- -->创建一个<code class="notion-inline-code">/etc/yum.repos.d/mongodb-org-3.6.repo</code>文件，以便您可以直接使用安装MongoDB yum。</li></ul><ul class="notion-list notion-list-disc notion-block-6603ea59221844ceabd0428bccebbd6a"><li>安装MongoDB软件包。<code class="notion-inline-code">$ sudo yum install -y mongodb-org</code></li></ul><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-d201ad85c4b64759a1ef58acd411a8ff" data-id="d201ad85c4b64759a1ef58acd411a8ff"><span><div id="d201ad85c4b64759a1ef58acd411a8ff" class="notion-header-anchor"></div><a class="notion-hash-link" href="#d201ad85c4b64759a1ef58acd411a8ff" title="centos 使用 node-html-pdf 库中文不显示的问题"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">centos 使用 <a class="notion-link" href="https://github.com/marcbachmann/node-html-pdf" target="_blank" rel="noopener noreferrer"><code class="notion-inline-code">node-html-pdf</code></a> 库中文不显示的问题</span></span></h2><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1bbd37c21fbb80968e4bf133d01cf346"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A7dc51cf9-f273-4f77-9124-28ad550e493f%3Aimage.png?table=block&amp;id=1bbd37c2-1fbb-8096-8e4b-f133d01cf346&amp;t=1bbd37c2-1fbb-8096-8e4b-f133d01cf346" alt="notion image" loading="lazy" decoding="async"/></div></figure></main></div>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mongodb]]></title>
            <link>https://blog.superhx.cn/article/1bed37c2-1fbb-80d7-a541-df2c8ae73607</link>
            <guid>https://blog.superhx.cn/article/1bed37c2-1fbb-80d7-a541-df2c8ae73607</guid>
            <pubDate>Mon, 15 Oct 2018 00:00:00 GMT</pubDate>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-1bed37c21fbb80d7a541df2c8ae73607"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1bed37c21fbb802ab5c9c02e63685b34" data-id="1bed37c21fbb802ab5c9c02e63685b34"><span><div id="1bed37c21fbb802ab5c9c02e63685b34" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb802ab5c9c02e63685b34" title="安装"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">安装</span></span></h2><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1bed37c21fbb80d4a110c45035293033" data-id="1bed37c21fbb80d4a110c45035293033"><span><div id="1bed37c21fbb80d4a110c45035293033" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb80d4a110c45035293033" title="Mac"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">Mac</span></span></h2><ol start="1" class="notion-list notion-list-numbered notion-block-1bed37c21fbb807ea8aaeffc0cad591a" style="list-style-type:decimal"><li><code class="notion-inline-code">brew tap mongodb/brew</code></li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-1bed37c21fbb80478d72df4efa3b45f6" style="list-style-type:decimal"><li><code class="notion-inline-code">brew install mongodb-community@4.4</code></li></ol><ol start="3" class="notion-list notion-list-numbered notion-block-1bed37c21fbb801d892be51aa3950181" style="list-style-type:decimal"><li>启动</li><ol class="notion-list notion-list-numbered notion-block-1bed37c21fbb801d892be51aa3950181" style="list-style-type:lower-alpha"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1bed37c21fbb80478818fa2e4cc2689a"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:700px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://cdn.nlark.com/yuque/0/2020/png/99644/1598410375940-b23b0532-b984-4860-a75f-6a35a1238b52.png?spaceId=f49e6c6a-4871-41f2-a2e0-20fbd03c9e52&amp;t=1bed37c2-1fbb-8047-8818-fa2e4cc2689a" alt="notion image" loading="lazy" decoding="async"/></div></figure></ol></ol><div class="notion-text notion-block-1bed37c21fbb80a29249d79f341f9966"><code class="notion-inline-code">brew services start mongodb/brew/mongodb-community</code></div><div class="notion-text notion-block-1bed37c21fbb801aac7dc6ec717e45a4"><code class="notion-inline-code">mongod --config /usr/local/etc/mongod.conf</code></div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1bed37c21fbb80fb8054f5b1882fd161" data-id="1bed37c21fbb80fb8054f5b1882fd161"><span><div id="1bed37c21fbb80fb8054f5b1882fd161" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb80fb8054f5b1882fd161" title="基本命令"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">基本命令</span></span></h2><div class="notion-text notion-block-1bed37c21fbb80628182d38d08726a33"><code class="notion-inline-code">mongod</code>：数据库的执行程序<code class="notion-inline-code">mongo</code>：用来连接数据库的客户端<code class="notion-inline-code">mongoimprot</code>、<code class="notion-inline-code">mongoexport</code>：数据库的导入和导出<code class="notion-inline-code">mongorestore</code>、<code class="notion-inline-code">mongodump</code>：数据库导入导出二进制数据<code class="notion-inline-code">mongooplog</code>：操作日志的回放<code class="notion-inline-code">mongostat</code>：数据库服务器的状态</div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1bed37c21fbb8098af9cec1a5ec1abbb" data-id="1bed37c21fbb8098af9cec1a5ec1abbb"><span><div id="1bed37c21fbb8098af9cec1a5ec1abbb" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb8098af9cec1a5ec1abbb" title="配置mongodb服务"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">配置mongodb服务</span></span></h2><div class="notion-text notion-block-1bed37c21fbb80698e03f00e44162e81">1、创建一个配置文件（文件格式为<code class="notion-inline-code">YAML</code>）。该文件必须设置<code class="notion-inline-code">systemLog.path</code> 参数，包括一些附加的配置选项更好。（注意：windows下需要双斜线）</div><div class="notion-text notion-block-1bed37c21fbb80a283c5d93b17be0e73">2、安装 MongoDB服务</div><div class="notion-text notion-block-1bed37c21fbb80a48649c9db8f511adb">Windows环境下千万要注意权限！！！使用管理员权限，如果mongodb没有设置密码且能够在公网上访问，可以禁用mongodb端口。</div><div class="notion-text notion-block-1bed37c21fbb80ba99ebd6085d2fb90d">通过执行mongod.exe，使用--install选项来安装服务，使用--config选项来指定之前创建的配置文件。<code class="notion-inline-code">mongod --config &quot;配置文件路径\mongod.cfg&quot; --install</code>或者启动服务<code class="notion-inline-code">mongod --config &quot;D:\Program Files\MongoDB\Server\3.4\mongo.config&quot; --service</code>3、启动MongoDB服务<code class="notion-inline-code">net start MongoDB</code>关闭MongoDB服务<code class="notion-inline-code">net stop MongoDB</code>移除MongoDB服务<code class="notion-inline-code">mongod --remove</code></div><table class="notion-simple-table notion-block-1bed37c21fbb809b82d2f0fb8dec95dd"><tbody><tr class="notion-simple-table-row notion-block-1bed37c21fbb80bca567f222f0d2b57c"><td class="" style="width:120px"><div class="notion-simple-table-cell">SQL术语/概念</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">MongoDB术语/概念</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">解释/说明</div></td></tr><tr class="notion-simple-table-row notion-block-1bed37c21fbb80449a4cdb39d1443b8d"><td class="" style="width:120px"><div class="notion-simple-table-cell">database</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">database</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">数据库</div></td></tr><tr class="notion-simple-table-row notion-block-1bed37c21fbb80e89989d19921107537"><td class="" style="width:120px"><div class="notion-simple-table-cell">table</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">collection</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">数据库表/集合</div></td></tr><tr class="notion-simple-table-row notion-block-1bed37c21fbb80afa7aacbedc0a50225"><td class="" style="width:120px"><div class="notion-simple-table-cell">row</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">document</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">数据记录行/文档</div></td></tr><tr class="notion-simple-table-row notion-block-1bed37c21fbb803bb1e2c76f8f96b14d"><td class="" style="width:120px"><div class="notion-simple-table-cell">column</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">field</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">数据字段/域</div></td></tr><tr class="notion-simple-table-row notion-block-1bed37c21fbb804481eeeac7010d51ad"><td class="" style="width:120px"><div class="notion-simple-table-cell">index</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">index</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">索引</div></td></tr><tr class="notion-simple-table-row notion-block-1bed37c21fbb80cebc46eaab6b53c4de"><td class="" style="width:120px"><div class="notion-simple-table-cell">table</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">joins</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">表连接,MongoDB不支持</div></td></tr><tr class="notion-simple-table-row notion-block-1bed37c21fbb801f9233d67604fef259"><td class="" style="width:120px"><div class="notion-simple-table-cell">primary</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">key</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">primary key	主键,MongoDB自动将_id字段设置为主键</div></td></tr></tbody></table><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1bed37c21fbb80d2b5e8ff54ac45ab5e" data-id="1bed37c21fbb80d2b5e8ff54ac45ab5e"><span><div id="1bed37c21fbb80d2b5e8ff54ac45ab5e" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb80d2b5e8ff54ac45ab5e" title="预定义模式修饰符"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">预定义模式修饰符</span></span></h2><ol start="1" class="notion-list notion-list-numbered notion-block-1bed37c21fbb8021b7a4e1a077c29906" style="list-style-type:decimal"><li>官方提供</li></ol><div class="notion-text notion-block-1bed37c21fbb8053883ed2384a13846b">更多如： <code class="notion-inline-code">lowercase</code>  <code class="notion-inline-code">uppercase</code>  ...</div><ol start="1" class="notion-list notion-list-numbered notion-block-1bed37c21fbb80f68cb3c4ddebc41643" style="list-style-type:decimal"><li>自定义修饰符 Getters 和 Setters</li></ol><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1bed37c21fbb80e58e81c09949bd29ba" data-id="1bed37c21fbb80e58e81c09949bd29ba"><span><div id="1bed37c21fbb80e58e81c09949bd29ba" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb80e58e81c09949bd29ba" title="索引"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">索引</span></span></h2><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1bed37c21fbb80c8a27af244ac07ec1d" data-id="1bed37c21fbb80c8a27af244ac07ec1d"><span><div id="1bed37c21fbb80c8a27af244ac07ec1d" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb80c8a27af244ac07ec1d" title="内置CURD和扩展model的静态方法和实例"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">内置CURD和扩展model的静态方法和实例</span></span></h2><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1bed37c21fbb80608150c4eacf1c321d" data-id="1bed37c21fbb80608150c4eacf1c321d"><span><div id="1bed37c21fbb80608150c4eacf1c321d" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb80608150c4eacf1c321d" title="静态方法"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">静态方法</span></span></h2><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1bed37c21fbb807f807ae6eadb0f4309" data-id="1bed37c21fbb807f807ae6eadb0f4309"><span><div id="1bed37c21fbb807f807ae6eadb0f4309" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb807f807ae6eadb0f4309" title="实例方法"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">实例方法</span></span></h2><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1bed37c21fbb80c582ddd21e22f436c2" data-id="1bed37c21fbb80c582ddd21e22f436c2"><span><div id="1bed37c21fbb80c582ddd21e22f436c2" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb80c582ddd21e22f436c2" title="数据校验"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">数据校验</span></span></h2><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1bed37c21fbb80c68995cf84e0c41d52" data-id="1bed37c21fbb80c68995cf84e0c41d52"><span><div id="1bed37c21fbb80c68995cf84e0c41d52" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb80c68995cf84e0c41d52" title="官方提供"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">官方提供</span></span></h2><div class="notion-text notion-block-1bed37c21fbb806181acd759c3f64997"><code class="notion-inline-code">required</code>  必须传入</div><div class="notion-text notion-block-1bed37c21fbb808f9a7fc34983244851"><code class="notion-inline-code">max</code>  Number最大</div><div class="notion-text notion-block-1bed37c21fbb80d395f8caf0884a5296"><code class="notion-inline-code">enum</code>  枚举，必须满足枚举，enum[&quot;0&quot;, &quot;1&quot;, &quot;2&quot;]</div><div class="notion-text notion-block-1bed37c21fbb8050801ae469d9393718"><code class="notion-inline-code">match</code>  正则</div><div class="notion-text notion-block-1bed37c21fbb80208ed2d0e01151076a"><code class="notion-inline-code">maxlengh</code>  长度</div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1bed37c21fbb80cd85f8d9e5a8514d89" data-id="1bed37c21fbb80cd85f8d9e5a8514d89"><span><div id="1bed37c21fbb80cd85f8d9e5a8514d89" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb80cd85f8d9e5a8514d89" title="自定义验证器"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">自定义验证器</span></span></h2><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1bed37c21fbb80e58bf0d1c532fe010e" data-id="1bed37c21fbb80e58bf0d1c532fe010e"><span><div id="1bed37c21fbb80e58bf0d1c532fe010e" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb80e58bf0d1c532fe010e" title="聚合管道"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">聚合管道</span></span></h2><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1bed37c21fbb80c5bd78c7e24bd58f69" data-id="1bed37c21fbb80c5bd78c7e24bd58f69"><span><div id="1bed37c21fbb80c5bd78c7e24bd58f69" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb80c5bd78c7e24bd58f69" title="一对多"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">一对多</span></span></h2><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1bed37c21fbb80969f8bfc7e8982c86c" data-id="1bed37c21fbb80969f8bfc7e8982c86c"><span><div id="1bed37c21fbb80969f8bfc7e8982c86c" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb80969f8bfc7e8982c86c" title="关联查询"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">关联查询</span></span></h2><ol start="1" class="notion-list notion-list-numbered notion-block-1bed37c21fbb802d80a5d0f94e473e2f" style="list-style-type:decimal"><li>可使用 <code class="notion-inline-code">aggregate</code></li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-1bed37c21fbb809b905df4459d799e0e" style="list-style-type:decimal"><li><code class="notion-inline-code">populate</code> <code class="notion-inline-code">ref: &quot;Students&quot;</code></li></ol><ol start="3" class="notion-list notion-list-numbered notion-block-1bed37c21fbb80f38c5ac4794bf8be64" style="list-style-type:decimal"><li>虚拟填充</li></ol></main></div>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Python]]></title>
            <link>https://blog.superhx.cn/article/1bed37c2-1fbb-80ea-b95e-eab14067f764</link>
            <guid>https://blog.superhx.cn/article/1bed37c2-1fbb-80ea-b95e-eab14067f764</guid>
            <pubDate>Mon, 15 Oct 2018 00:00:00 GMT</pubDate>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-1bed37c21fbb80eab95eeab14067f764"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1bed37c21fbb804f833ff8abd2fa3af5" data-id="1bed37c21fbb804f833ff8abd2fa3af5"><span><div id="1bed37c21fbb804f833ff8abd2fa3af5" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb804f833ff8abd2fa3af5" title="基本数据类型"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">基本数据类型</span></span></h2><ul class="notion-list notion-list-disc notion-block-1bed37c21fbb806ab610ef8d073ec753"><li>整数</li></ul><ul class="notion-list notion-list-disc notion-block-1bed37c21fbb808c9488f424dca7cc28"><li>浮点数</li></ul><blockquote class="notion-quote notion-block-1bed37c21fbb802cba6ccdccfc3eb5cf"><div>/除法计算结果是浮点数，即使是两个整数恰好整除，结果也是浮点数,还有一种除法是//，称为地板除，两个整数的除法仍然是整数。</div></blockquote><ul class="notion-list notion-list-disc notion-block-1bed37c21fbb800d85a5f389387815f2"><li>字符串<code class="notion-inline-code">&#x27;&#x27;&#x27;...&#x27;&#x27;&#x27;</code>多行输出<code class="notion-inline-code">r...</code>表示r后面的字符原样输出</li></ul><blockquote class="notion-quote notion-block-1bed37c21fbb8096824cf4e115bde403"><div>如：print(r&#x27;\\\\\\t\\\\&#x27;)输出为：\\\\\\t\\\\</div></blockquote><ul class="notion-list notion-list-disc notion-block-1bed37c21fbb806ea882f7a296608a8e"><li>布尔值<code class="notion-inline-code">True、False</code>,布尔值可以用<code class="notion-inline-code">and</code>、<code class="notion-inline-code">or</code>和<code class="notion-inline-code">not</code>运算。</li></ul><ul class="notion-list notion-list-disc notion-block-1bed37c21fbb80afaf4dfbb35a6277a5"><li>空值
空值是Python里一个特殊的值，用None表示。None不能理解为0，因为0是有意义的，而None是一个特殊的空值。</li></ul><ul class="notion-list notion-list-disc notion-block-1bed37c21fbb807ca7fff836577f8de7"><li><code class="notion-inline-code">x ** y</code>：x的y次幂<code class="notion-inline-code">abs(x)</code>：x的绝对值<code class="notion-inline-code">print(divmod(x, y))</code>：(x // y, x % y)<code class="notion-inline-code">pow(x,y)</code>：x的y次幂</li></ul><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1bed37c21fbb80499687e93ccb27668b" data-id="1bed37c21fbb80499687e93ccb27668b"><span><div id="1bed37c21fbb80499687e93ccb27668b" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb80499687e93ccb27668b" title="list(数组)"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">list(数组)</span></span></h3><div class="notion-text notion-block-1bed37c21fbb80deab3ede70ac767eb7">list是一种有序的集合，可以随时添加和删除其中的元素。</div><div class="notion-text notion-block-1bed37c21fbb80a2a4b9f234a257f0e4">和字符串一样，也可反向取值和区间取值。</div><div class="notion-text notion-block-1bed37c21fbb80d282e5c9b46a6e274a">用<code class="notion-inline-code">len()</code>函数可以获得list元素的个数。</div><div class="notion-text notion-block-1bed37c21fbb8054a6bfe61396d63e34"><code class="notion-inline-code">pop(i)</code> 不带参删除末尾元素，带参为删除指定位置的元素</div><div class="notion-text notion-block-1bed37c21fbb8062aac6ed022995ee1c"><code class="notion-inline-code">insert(index, element)</code> 将元素插入到指定位置</div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1bed37c21fbb80eabcd4c726ef745a79" data-id="1bed37c21fbb80eabcd4c726ef745a79"><span><div id="1bed37c21fbb80eabcd4c726ef745a79" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb80eabcd4c726ef745a79" title="tuple(元组)"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">tuple(元组)</span></span></h3><div class="notion-text notion-block-1bed37c21fbb802a8cecd441ccce4046">tuple一旦初始化就不能修改,它也没有append()，insert()这样的方法。其他获取元素的方法和list是一样的。</div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1bed37c21fbb80b2b0f9f9757e7abb3a" data-id="1bed37c21fbb80b2b0f9f9757e7abb3a"><span><div id="1bed37c21fbb80b2b0f9f9757e7abb3a" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb80b2b0f9f9757e7abb3a" title="dict"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">dict</span></span></h3><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1bed37c21fbb807a938dc1748a8b52fb" data-id="1bed37c21fbb807a938dc1748a8b52fb"><span><div id="1bed37c21fbb807a938dc1748a8b52fb" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb807a938dc1748a8b52fb" title="set"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">set</span></span></h3><div class="notion-text notion-block-1bed37c21fbb803793fdf451b8f2094e">set是不可重复元素集合。</div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1bed37c21fbb802aa3c2d4a210fe9c8b" data-id="1bed37c21fbb802aa3c2d4a210fe9c8b"><span><div id="1bed37c21fbb802aa3c2d4a210fe9c8b" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb802aa3c2d4a210fe9c8b" title="逻辑"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">逻辑</span></span></h2><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1bed37c21fbb807eb6f5f2f677d435f8" data-id="1bed37c21fbb807eb6f5f2f677d435f8"><span><div id="1bed37c21fbb807eb6f5f2f677d435f8" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb807eb6f5f2f677d435f8" title="条件判断"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">条件判断</span></span></h3><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1bed37c21fbb800089bbce94be7ce24b" data-id="1bed37c21fbb800089bbce94be7ce24b"><span><div id="1bed37c21fbb800089bbce94be7ce24b" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb800089bbce94be7ce24b" title="循环"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">循环</span></span></h3><div class="notion-text notion-block-1bed37c21fbb80699a32f663b261af31">遍历输出 list</div><div class="notion-text notion-block-1bed37c21fbb80abb7c0d32585bfcbe9">Python提供一个<code class="notion-inline-code">range()</code>函数，可以生成一个整数序列</div><div class="notion-text notion-block-1bed37c21fbb807e8989d6cb3a19baf7"><code class="notion-inline-code">while</code>循环</div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1bed37c21fbb80c2aaf1c266f9259ec2" data-id="1bed37c21fbb80c2aaf1c266f9259ec2"><span><div id="1bed37c21fbb80c2aaf1c266f9259ec2" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb80c2aaf1c266f9259ec2" title="函数"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">函数</span></span></h2><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1bed37c21fbb807aba03f5a8211e4d80" data-id="1bed37c21fbb807aba03f5a8211e4d80"><span><div id="1bed37c21fbb807aba03f5a8211e4d80" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb807aba03f5a8211e4d80" title="默认参数"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">默认参数</span></span></h3><div class="notion-text notion-block-1bed37c21fbb80308271d0e931b4c67a">Python函数在定义的时候，默认参数L的值就被计算出来了，即[]，因为默认参数L也是一个变量，它指向对象[]，每次调用该函数，如果改变了L的内容，则下次调用时，默认参数的内容就变了，不再是函数定义时的[]了。</div><div class="notion-text notion-block-1bed37c21fbb8086b995ee4927450aaa">修改如下：</div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1bed37c21fbb809ea779c2bf8efc85f0" data-id="1bed37c21fbb809ea779c2bf8efc85f0"><span><div id="1bed37c21fbb809ea779c2bf8efc85f0" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb809ea779c2bf8efc85f0" title="可变参数"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">可变参数</span></span></h3><div class="notion-text notion-block-1bed37c21fbb8071a4d6f595b861f49b">在函数内部，参数 <code class="notion-inline-code">numbers</code> 接收到的是一个 <code class="notion-inline-code">tuple</code> ，因此，函数代码完全不变。</div><div class="notion-text notion-block-1bed37c21fbb807ca62cc4e065633692">nums表示把nums这个list的所有元素作为可变参数传进去。</div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1bed37c21fbb80528d19d1f56ab9368f" data-id="1bed37c21fbb80528d19d1f56ab9368f"><span><div id="1bed37c21fbb80528d19d1f56ab9368f" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb80528d19d1f56ab9368f" title="关键字参数"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">关键字参数</span></span></h3><div class="notion-text notion-block-1bed37c21fbb80678037d3a32f5174d1">可变参数允许你传入0个或任意个参数，这些可变参数在函数调用时自动组装为一个tuple。而关键字参数允许你传入0个或任意个含参数名的参数，这些关键字参数在函数内部自动组装为一个dict。</div><blockquote class="notion-quote notion-block-1bed37c21fbb80e58f8cdf3b0233c2a7"><div>extra表示把extra这个dict的所有key-value****用关键字参数传入到函数的 other参数，kw将获得一个dict，注意other获得的dict是extra的一份拷贝，对other的改动不会影响到函数外的extra。</div></blockquote><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1bed37c21fbb80d0bb4de53737cd7f42" data-id="1bed37c21fbb80d0bb4de53737cd7f42"><span><div id="1bed37c21fbb80d0bb4de53737cd7f42" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb80d0bb4de53737cd7f42" title="命名关键字参数"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">命名关键字参数</span></span></h3><div class="notion-text notion-block-1bed37c21fbb8041ac5cf99516e09095">如果要限制关键字参数的名字，就可以用命名关键字参数，例如，只接收city和job作为关键字参数。这种方式定义的函数如下：</div><div class="notion-text notion-block-1bed37c21fbb80f0810cdfe2afeb7723">和关键字参数<code class="notion-inline-code">**other</code>不同，命名关键字参数需要一个特殊分隔符<code class="notion-inline-code">*</code>，<code class="notion-inline-code">*</code>后面的参数被视为命名关键字参数。</div><div class="notion-text notion-block-1bed37c21fbb805094c8f2041ea0abd8">命名关键字参数必须传入参数名，这和位置参数不同。</div><div class="notion-text notion-block-1bed37c21fbb8085b586ca60bcedb57b">如果函数定义中已经有了一个可变参数，后面跟着的命名关键字参数就不再需要一个特殊分隔符<code class="notion-inline-code">*</code>了。</div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1bed37c21fbb80aba9bee249c25f9659" data-id="1bed37c21fbb80aba9bee249c25f9659"><span><div id="1bed37c21fbb80aba9bee249c25f9659" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb80aba9bee249c25f9659" title="参数组合"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">参数组合</span></span></h3><div class="notion-text notion-block-1bed37c21fbb804ab158cd1f8065164c">在Python中定义函数，可以用必选参数、默认参数、可变参数、关键字参数和命名关键字参数，这5种参数都可以组合使用。但是请注意，参数定义的顺序必须是：必选参数、默认参数、可变参数、命名关键字参数和关键字参数。</div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1bed37c21fbb80eaa029ec07c9423aae" data-id="1bed37c21fbb80eaa029ec07c9423aae"><span><div id="1bed37c21fbb80eaa029ec07c9423aae" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb80eaa029ec07c9423aae" title="异常"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">异常</span></span></h2><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1bed37c21fbb803a8a7bc033dd4ea8fc" data-id="1bed37c21fbb803a8a7bc033dd4ea8fc"><span><div id="1bed37c21fbb803a8a7bc033dd4ea8fc" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb803a8a7bc033dd4ea8fc" title="设置 pip 源"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">设置 pip 源</span></span></h2><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1bed37c21fbb8014aedad5d133d6149f" data-id="1bed37c21fbb8014aedad5d133d6149f"><span><div id="1bed37c21fbb8014aedad5d133d6149f" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb8014aedad5d133d6149f" title="创建虚拟环境"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">创建虚拟环境</span></span></h2><ol start="1" class="notion-list notion-list-numbered notion-block-1bed37c21fbb80bb94cef532d19ad657" style="list-style-type:decimal"><li>安装 <code class="notion-inline-code">virtualenv</code> ： <code class="notion-inline-code">pip3 install --user virtualenv</code></li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-1bed37c21fbb80c8b2e8d4e7714cce7f" style="list-style-type:decimal"><li>准备 <code class="notion-inline-code">virtualenv</code>：<code class="notion-inline-code">virtualenv -p python3 venv</code></li></ol><ul class="notion-list notion-list-disc notion-block-1bed37c21fbb80adaaeeccb2026ba5f3"><li><code class="notion-inline-code">p</code>&lt;font style=&quot;color:#515151;&quot;&gt;是显式指定Python版本，避免使用默认的&lt;/font&gt;<code class="notion-inline-code">python</code>&lt;font style=&quot;color:#515151;&quot;&gt;。 虚拟环境的常用名，可选择&lt;/font&gt;<code class="notion-inline-code">env</code>&lt;font style=&quot;color:#515151;&quot;&gt;、&lt;/font&gt;<code class="notion-inline-code">venv</code>&lt;font style=&quot;color:#515151;&quot;&gt;、&lt;/font&gt;<code class="notion-inline-code">.env</code>&lt;font style=&quot;color:#515151;&quot;&gt;、&lt;/font&gt;<code class="notion-inline-code">.venv</code>&lt;font style=&quot;color:#515151;&quot;&gt;。 &lt;/font&gt;<code class="notion-inline-code">venv</code>&lt;font style=&quot;color:#515151;&quot;&gt;是PyCharm的默认虚拟环境名称。&lt;/font&gt;</li></ul><div class="notion-text notion-block-1bed37c21fbb80d3b151fe578aa3d237">&lt;font style=&quot;color:#515151;&quot;&gt;或者使用 python3.3 标准库中的 &lt;/font&gt;<code class="notion-inline-code">&lt;font style=&quot;color:#515151;&quot;&gt;venv&lt;/font&gt;</code> 模块：</div><ol start="1" class="notion-list notion-list-numbered notion-block-1bed37c21fbb8070b3eafcbe8fd6502c" style="list-style-type:decimal"><li>激活 <code class="notion-inline-code">virtualenv</code> ：默认使用的是用户 + 系统环境，激活后才是虚拟环境。</li></ol><div class="notion-text notion-block-1bed37c21fbb800980d6ea2e819898e8">在这个虚拟环境中， <code class="notion-inline-code">python</code> 就是 <code class="notion-inline-code">python3</code> ，而系统环境的<code class="notion-inline-code">python</code> 通常是<code class="notion-inline-code">python2</code> 。在安装软件时，直接使用 <code class="notion-inline-code">pip</code> ，即可安装到虚拟环境中。而不像一般状态下，要么加<code class="notion-inline-code">sudo</code>&lt;font style=&quot;color:#515151;&quot;&gt;提权（[brew]或Windows环境下不用），要么安装时需要加&lt;/font&gt;<code class="notion-inline-code">--user</code>&lt;font style=&quot;color:#515151;&quot;&gt;，安装到用户目录下。&lt;/font&gt;</div><div class="notion-text notion-block-1bed37c21fbb804ebb29c75e5eee6e9b">&lt;font style=&quot;color:#515151;&quot;&gt;以下是系统、用户、虚拟环境三种方式安装，以及可执行文件&lt;/font&gt;<code class="notion-inline-code">pylint</code>&lt;font style=&quot;color:#515151;&quot;&gt;被安装的位置。&lt;/font&gt;</div><ol start="1" class="notion-list notion-list-numbered notion-block-1bed37c21fbb806b8be1d081814aaefe" style="list-style-type:decimal"><li>退出<code class="notion-inline-code">virtualenv</code>： <code class="notion-inline-code">deactivate</code> 。退出后，回到用户 + 系统环境。</li></ol></main></div>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[C语言]]></title>
            <link>https://blog.superhx.cn/article/1bed37c2-1fbb-80b7-9474-f6f167367a15</link>
            <guid>https://blog.superhx.cn/article/1bed37c2-1fbb-80b7-9474-f6f167367a15</guid>
            <pubDate>Mon, 15 Oct 2018 00:00:00 GMT</pubDate>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-1bed37c21fbb80b79474f6f167367a15"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><div class="notion-text notion-block-1bed37c21fbb802b9ba7c59257ec8987"><a class="notion-link" href="http://c.biancheng.net/cpp/html/110.html" target="_blank" rel="noopener noreferrer">C语言库文件</a></div><div class="notion-text notion-block-1bed37c21fbb8030ac5fd7a9e5cc4a9b"><a class="notion-link" href="http://blog.csdn.net/candyliuxj/article/details/4793153" target="_blank" rel="noopener noreferrer">C语言中最常用标准库函数</a></div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1bed37c21fbb80a9b750e703540df9d7" data-id="1bed37c21fbb80a9b750e703540df9d7"><span><div id="1bed37c21fbb80a9b750e703540df9d7" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb80a9b750e703540df9d7" title="指针"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">指针</span></span></h2><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1bed37c21fbb80099997ed69e36cda66" data-id="1bed37c21fbb80099997ed69e36cda66"><span><div id="1bed37c21fbb80099997ed69e36cda66" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb80099997ed69e36cda66" title="指针的使用"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">指针的使用</span></span></h2><div class="notion-text notion-block-1bed37c21fbb801a8182edd7d643f7a0">指针变量的值是一种特殊类型的数据---内存地址。<code class="notion-inline-code">sizeof</code>是一个运算符，给出某个类型或变量在内存中所占字节数。<code class="notion-inline-code">&amp;</code>获得变量的地址，它的操作数必须是变量。</div><ul class="notion-list notion-list-disc notion-block-1bed37c21fbb80b5b277cc51b673a3a9"><li>数组参数：</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1bed37c21fbb804d9ca2ffbedd545902"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:467px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A710896e9-d4c2-438d-a935-3191137b7ed6%3Aimage.png?table=block&amp;id=1bed37c2-1fbb-804d-9ca2-ffbedd545902&amp;t=1bed37c2-1fbb-804d-9ca2-ffbedd545902" alt="notion image" loading="lazy" decoding="async"/></div></figure><ul class="notion-list notion-list-disc notion-block-1bed37c21fbb80ad96f9ffa02079070d"><li>数组实质上是<code class="notion-inline-code">const</code>的指针，</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1bed37c21fbb8080b4c0ced937b34dac"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:467px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aa3f2d0cf-5704-46a6-8b54-5e2064aed13f%3Aimage.png?table=block&amp;id=1bed37c2-1fbb-8080-b4c0-ced937b34dac&amp;t=1bed37c2-1fbb-8080-b4c0-ced937b34dac" alt="notion image" loading="lazy" decoding="async"/></div></figure><ul class="notion-list notion-list-disc notion-block-1bed37c21fbb8044919af3322fc3d4cb"><li><code class="notion-inline-code">const</code>和指针同时使用需注意：</li></ul><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1bed37c21fbb80429b4ee3150b714430" data-id="1bed37c21fbb80429b4ee3150b714430"><span><div id="1bed37c21fbb80429b4ee3150b714430" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb80429b4ee3150b714430" title="指针的运算"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">指针的运算</span></span></h2><div class="notion-text notion-block-1bed37c21fbb806285d4d3fd370fba56">指针应该指向一片连续的空间，如数组，否则无意义。</div><ul class="notion-list notion-list-disc notion-block-1bed37c21fbb800a8062cc7c0c088512"><li>两个指针相减：</li></ul><ul class="notion-list notion-list-disc notion-block-1bed37c21fbb80a79925e6e26b485d55"><li><code class="notion-inline-code">p++</code>：常用于数组类的连续空间操作</li></ul><ul class="notion-list notion-list-disc notion-block-1bed37c21fbb808aa7e7f15aa044ba2b"><li>指针的比较实际上是指针所指的地址的比较。</li></ul><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1bed37c21fbb80d1b677cf71ffc37d4a" data-id="1bed37c21fbb80d1b677cf71ffc37d4a"><span><div id="1bed37c21fbb80d1b677cf71ffc37d4a" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb80d1b677cf71ffc37d4a" title="指针的类型"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">指针的类型</span></span></h2><ul class="notion-list notion-list-disc notion-block-1bed37c21fbb80659c59daccafae4661"><li>指针的类型：无论指向什么类型，所以的指针大小都相同，因为都是指针；但是指向不同类型的指针不能相互赋值，这是为了避免用错指针。</li></ul><ul class="notion-list notion-list-disc notion-block-1bed37c21fbb80e7935fdb4e2b0ea372"><li>指针的类型转换：空指针和void类型指针：值0是唯一能直接赋给指针变量的整数值，如果指针变量的值为0，表示该指针变量不指向任何值，为了使程序更清晰，C语言在头文件&lt;stdio.h&gt;中定义了一个符号常量<code class="notion-inline-code">NULL</code>，与0等价，成为空指针。一个指针如果取空指针值，表明该指针变量未指向有实际意义的数据，但要注意：指针变量初始化并不表示该指针变量取空指针值，而是不确定地址。</li></ul><div class="notion-text notion-block-1bed37c21fbb808f9588dfcac29f8a5b"><code class="notion-inline-code">void *p;</code>即定义一个指针变量p,但不指定它必须指向哪一种具体的数据，必要时可以用它指向一个任意类型的数据，但必须通过强制类型转换确定其指向哪种类型。如：</div><div class="notion-text notion-block-1bed37c21fbb8032b455e51260dab4b8">void类型的指针主要用于程序中为动态数据结构（链表/堆栈/队列/树等）申请内存空间时返回所分配存储空间的首地址。</div><ul class="notion-list notion-list-disc notion-block-1bed37c21fbb801fbc3acfe6307db8a3"><li>C语言的通用实用库（头文件为<code class="notion-inline-code">stdlib.h</code>）提供了一组动态分配的函数供用户在程序执行时申请内存空间以及释放不再需要的内存空间。</li></ul><ul class="notion-list notion-list-disc notion-block-1bed37c21fbb8059b06ad152ffcd038c"><li><code class="notion-inline-code">void *malloc(unsigned size);</code></li></ul><ul class="notion-list notion-list-disc notion-block-1bed37c21fbb80949f08cea9abc072cf"><li><code class="notion-inline-code">void *calloc(unsigned n, unsigned size);</code></li></ul><ul class="notion-list notion-list-disc notion-block-1bed37c21fbb80c797dddcd7c6bd1a7f"><li><code class="notion-inline-code">void *realloc(void *ptr, unsigned size);</code></li></ul><ul class="notion-list notion-list-disc notion-block-1bed37c21fbb8060b670dd4a067987a9"><li><code class="notion-inline-code">void free(ptr);</code></li></ul><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1bed37c21fbb80f3a6dce1bdc2ec8a0c" data-id="1bed37c21fbb80f3a6dce1bdc2ec8a0c"><span><div id="1bed37c21fbb80f3a6dce1bdc2ec8a0c" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb80f3a6dce1bdc2ec8a0c" title="字符串"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">字符串</span></span></h2><div class="notion-text notion-block-1bed37c21fbb80ec9e24d8a56a9664de"><code class="notion-inline-code">char *s = &quot;Hello World!&quot;;</code></div><div class="notion-text notion-block-1bed37c21fbb803399f9c81d6840fc99"><code class="notion-inline-code">s</code>是一个指针，初始化为指向一个字符串常量，由于这个常量所在的地方，实际上<code class="notion-inline-code">s</code>是<code class="notion-inline-code">const char *s</code>；试图对<code class="notion-inline-code">s</code>所指的字符串做写入会造成严重的后果；如果需要修改字符串，应该用数组:<code class="notion-inline-code">char s[] = &quot;Hello World!&quot;;</code>。</div><ul class="notion-list notion-list-disc notion-block-1bed37c21fbb80fa8eeee735aba49a85"><li><b>如果选择使用数组还是指针创建字符串？</b></li></ul><ul class="notion-list notion-list-disc notion-block-1bed37c21fbb808e93fce705f3752af8"><li>数组：这个字符串在这里；作为本地变量空间自动被回收。（构造一个字符串）</li></ul><ul class="notion-list notion-list-disc notion-block-1bed37c21fbb8079a349f569994ee755"><li>指针：这个字符串不知道在哪；处理参数；动态分配空间。（处理一个字符串）</li></ul><div class="notion-text notion-block-1bed37c21fbb8034bcb0dddfffd74378">对数组进行<code class="notion-inline-code">scanf</code>写入时，可以<code class="notion-inline-code">scanf(%6s, s);</code>进行安全写入。</div><ul class="notion-list notion-list-disc notion-block-1bed37c21fbb8059b0b0f75174d29048"><li>字符串数组<code class="notion-inline-code">char *a[]</code></li></ul><table class="notion-simple-table notion-block-1bed37c21fbb807ea6cff1734f6366ca"><tbody><tr class="notion-simple-table-row notion-block-1bed37c21fbb807cb66fc39515393e65"><td class="" style="width:120px"><div class="notion-simple-table-cell">函数</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">说明</div></td></tr><tr class="notion-simple-table-row notion-block-1bed37c21fbb8080b593f7aed19f9f3d"><td class="" style="width:120px"><div class="notion-simple-table-cell"><code class="notion-inline-code">strcpy(s1, s2);</code></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">将s2所指字符串的内容复制到是s1所指存储空间中，函数返回s1的值，即s2的首地址</div></td></tr><tr class="notion-simple-table-row notion-block-1bed37c21fbb800fbcd5f59689f8ffd2"><td class="" style="width:120px"><div class="notion-simple-table-cell"><code class="notion-inline-code">strlen(s);</code></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">返回字符串长度，不包括串尾的结束标志<code class="notion-inline-code">\0</code></div></td></tr><tr class="notion-simple-table-row notion-block-1bed37c21fbb8032abbdf6959d86f829"><td class="" style="width:120px"><div class="notion-simple-table-cell"><code class="notion-inline-code">strcmp(s1, s2);</code></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">比较s1和s2所指字符串的大小（<code class="notion-inline-code">&gt;0/0/&lt;0</code>）</div></td></tr><tr class="notion-simple-table-row notion-block-1bed37c21fbb80c18c5af4eebd9496d6"><td class="" style="width:120px"><div class="notion-simple-table-cell"><code class="notion-inline-code">strcat(s1, s2);</code></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">将s2所指字符串的内容连接到s1,所指的字符串后面，并自动覆盖s1串末尾的<code class="notion-inline-code">\0</code>，返回s1的地址值</div></td></tr><tr class="notion-simple-table-row notion-block-1bed37c21fbb80f6bb3cdd71539d1f3a"><td class="" style="width:120px"><div class="notion-simple-table-cell"><code class="notion-inline-code">strlwr(s);</code></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">转换成小写字母</div></td></tr><tr class="notion-simple-table-row notion-block-1bed37c21fbb8042bcb3e59cd228ed0e"><td class="" style="width:120px"><div class="notion-simple-table-cell"><code class="notion-inline-code">strupr(s);</code></div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">转换成大写字母</div></td></tr></tbody></table><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1bed37c21fbb800cb288de0c1b7e2c7a" data-id="1bed37c21fbb800cb288de0c1b7e2c7a"><span><div id="1bed37c21fbb800cb288de0c1b7e2c7a" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb800cb288de0c1b7e2c7a" title="枚举"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">枚举</span></span></h2><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1bed37c21fbb80e986a1c77384b5eae7" data-id="1bed37c21fbb80e986a1c77384b5eae7"><span><div id="1bed37c21fbb80e986a1c77384b5eae7" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb80e986a1c77384b5eae7" title="定义"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">定义</span></span></h2><div class="notion-text notion-block-1bed37c21fbb8036ad04d8c80d734efa">枚举类型名字通常并不真的使用，要用的是大括号里的名字，因为它们就是常量符号，它们的类型是<code class="notion-inline-code">int</code>，值则依次为0-n，声明枚举量的时候可以指定值，如：</div><div class="notion-text notion-block-1bed37c21fbb8052a041d74a38d19302">枚举类型可以加上<code class="notion-inline-code">enum</code>做为类型；但是实际上是以整数来做内部计算和外部输入输出的。虽然枚举类型可以当作类型使用，但是实际上不好用；如果有意义排比的名字，用枚举比<code class="notion-inline-code">const int</code>方便；枚举比宏(macro)好，因为枚举有int类型。</div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1bed37c21fbb80768dc5d3c3aee2a4f2" data-id="1bed37c21fbb80768dc5d3c3aee2a4f2"><span><div id="1bed37c21fbb80768dc5d3c3aee2a4f2" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb80768dc5d3c3aee2a4f2" title="结构"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">结构</span></span></h2><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1bed37c21fbb80438fefc87ef71c469c" data-id="1bed37c21fbb80438fefc87ef71c469c"><span><div id="1bed37c21fbb80438fefc87ef71c469c" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb80438fefc87ef71c469c" title="定义"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">定义</span></span></h2><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1bed37c21fbb807284d1ea998007662d"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="http://ocaqc5g59.bkt.clouddn.com/2016111401.jpg?spaceId=f49e6c6a-4871-41f2-a2e0-20fbd03c9e52&amp;t=1bed37c2-1fbb-8072-84d1-ea998007662d" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1bed37c21fbb808dbfdad03e4f69f87f">和本地变量一样，在函数内部声明的结构类型只能在函数内部使用，所以通常在函数外部声明结构类型，所以可以被多个函数使用了。</div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1bed37c21fbb8060814eef22456eb39a" data-id="1bed37c21fbb8060814eef22456eb39a"><span><div id="1bed37c21fbb8060814eef22456eb39a" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb8060814eef22456eb39a" title="结构指针"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">结构指针</span></span></h2><div class="notion-text notion-block-1bed37c21fbb80fca2fce48666a37f27">和数组不同，结构变量的名字不是结构变量的地址，必须使用<code class="notion-inline-code">&amp;</code>运算符。<code class="notion-inline-code">struct date *pDate = &amp;yesterday;</code></div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1bed37c21fbb807a9fe7d15771136237" data-id="1bed37c21fbb807a9fe7d15771136237"><span><div id="1bed37c21fbb807a9fe7d15771136237" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb807a9fe7d15771136237" title="结构和函数"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">结构和函数</span></span></h2><div class="notion-text notion-block-1bed37c21fbb808490a9cf01773bf166">整个结构可以作为参数的值传入函数；这时候是在函数内新建一个结构变量，并复制调用者的结构的值；也可以返回一个结构；这与数组完全不同。</div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1bed37c21fbb80ed9807ee899243985d" data-id="1bed37c21fbb80ed9807ee899243985d"><span><div id="1bed37c21fbb80ed9807ee899243985d" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb80ed9807ee899243985d" title="联合"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">联合</span></span></h2><ol start="1" class="notion-list notion-list-numbered notion-block-1bed37c21fbb80cb8c40f6fd377910e5" style="list-style-type:decimal"><li>自定义数据类型（<code class="notion-inline-code">typedef</code>）：声明一个已有的数据类型的新名字。</li><ol class="notion-list notion-list-numbered notion-block-1bed37c21fbb80cb8c40f6fd377910e5" style="list-style-type:lower-alpha"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1bed37c21fbb800a87c0f92d3ed0fc7d"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="http://ocaqc5g59.bkt.clouddn.com/2016121101.png?spaceId=f49e6c6a-4871-41f2-a2e0-20fbd03c9e52&amp;t=1bed37c2-1fbb-800a-87c0-f92d3ed0fc7d" alt="notion image" loading="lazy" decoding="async"/></div></figure></ol></ol><ol start="2" class="notion-list notion-list-numbered notion-block-1bed37c21fbb80bb8257c4a0c9849001" style="list-style-type:decimal"><ol class="notion-list notion-list-numbered notion-block-1bed37c21fbb80bb8257c4a0c9849001" style="list-style-type:lower-alpha"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1bed37c21fbb8000bd2ff53648ce5bdf"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="http://ocaqc5g59.bkt.clouddn.com/2016121102.png?spaceId=f49e6c6a-4871-41f2-a2e0-20fbd03c9e52&amp;t=1bed37c2-1fbb-8000-bd2f-f53648ce5bdf" alt="notion image" loading="lazy" decoding="async"/></div></figure></ol></ol><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1bed37c21fbb800aab70e2c85e6f3655" data-id="1bed37c21fbb800aab70e2c85e6f3655"><span><div id="1bed37c21fbb800aab70e2c85e6f3655" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb800aab70e2c85e6f3655" title="结构程序"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">结构程序</span></span></h2><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1bed37c21fbb80d2ba61cb80f6e9f9b0" data-id="1bed37c21fbb80d2ba61cb80f6e9f9b0"><span><div id="1bed37c21fbb80d2ba61cb80f6e9f9b0" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb80d2ba61cb80f6e9f9b0" title="全局变量"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">全局变量</span></span></h2><ul class="notion-list notion-list-disc notion-block-1bed37c21fbb8058a44ce2d1c95d9085"><li>定义在函数外面的变量是全局变量</li></ul><ul class="notion-list notion-list-disc notion-block-1bed37c21fbb803084eef636532d3e70"><li>全局变量具有全局的生命期和作用域</li></ul><ul class="notion-list notion-list-disc notion-block-1bed37c21fbb80a9a276d305c0744494"><li>它们与任何函数无关</li></ul><ul class="notion-list notion-list-disc notion-block-1bed37c21fbb802f9c8df76c4c6b0895"><li>在任何函数内部都可以使用它们</li></ul><div class="notion-text notion-block-1bed37c21fbb80638a40ee4ea8da9e2d">全局变量初始化：</div><ul class="notion-list notion-list-disc notion-block-1bed37c21fbb80e2a0f3fdc2301479bd"><li>没有做初始化的全局变量会得到0值，指针会得到NULL值</li></ul><ul class="notion-list notion-list-disc notion-block-1bed37c21fbb8034ab49df2ef57874d5"><li>只能用编译时刻的已知值来初始化全局变量</li></ul><ul class="notion-list notion-list-disc notion-block-1bed37c21fbb80eaa6e6cc1e7ad18144"><li>它们的初始化发生在main函数之前</li></ul><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1bed37c21fbb8079b9e6fd1db6a9cb45" data-id="1bed37c21fbb8079b9e6fd1db6a9cb45"><span><div id="1bed37c21fbb8079b9e6fd1db6a9cb45" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb8079b9e6fd1db6a9cb45" title="静态本地变量"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">静态本地变量</span></span></h2><ul class="notion-list notion-list-disc notion-block-1bed37c21fbb80129efbfb0c0bb6049a"><li>在本地变量定义的时加上<code class="notion-inline-code">static</code>修饰符就成为静态本地变量</li></ul><ul class="notion-list notion-list-disc notion-block-1bed37c21fbb8002b7a2c14e4b56f191"><li>当函数离开的时候，静态本地变量会继续存在并保持其值</li></ul><ul class="notion-list notion-list-disc notion-block-1bed37c21fbb807d8b6efb23518cda16"><li>静态本地变量的初始化只会在第一次进入这个函数时做，以后进入函数时会保持上次离开时的值</li></ul><ul class="notion-list notion-list-disc notion-block-1bed37c21fbb80949fd8e760230b6f5c"><li>静态本地变量实际上是特殊的全局变量</li></ul><ul class="notion-list notion-list-disc notion-block-1bed37c21fbb80d69994e708c41ae1c6"><li>它们位于相同的内存区域</li></ul><ul class="notion-list notion-list-disc notion-block-1bed37c21fbb80db8d2ddc40ee415cb7"><li>静态本地变量具有全局的生存期，函数内的局部作用域</li></ul><ul class="notion-list notion-list-disc notion-block-1bed37c21fbb8027a56fe9e60fef6bc8"><li><code class="notion-inline-code">static</code>在这里的意思是局部作用域（本地可访问）</li></ul><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1bed37c21fbb80899a3ad49037956938" data-id="1bed37c21fbb80899a3ad49037956938"><span><div id="1bed37c21fbb80899a3ad49037956938" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb80899a3ad49037956938" title="编译预处理和宏"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">编译预处理和宏</span></span></h2><ul class="notion-list notion-list-disc notion-block-1bed37c21fbb8084b659e2f7ddd46fba"><li>#开头的都是编译预处理指令</li></ul><ul class="notion-list notion-list-disc notion-block-1bed37c21fbb80b6b836e115ca663d15"><li>#define用来定义一个宏</li></ul><div class="notion-text notion-block-1bed37c21fbb8044a310fbec626aa3e5"><code class="notion-inline-code">#define</code> &lt;名字&gt; &lt;值&gt;</div><ul class="notion-list notion-list-disc notion-block-1bed37c21fbb80ff816bd9bfd50aefa8"><li>注意没有结尾的分号，因为不是C的语句</li></ul><ul class="notion-list notion-list-disc notion-block-1bed37c21fbb806fbdfdd326d4838559"><li>名字必须是⼀个单词，值可以是各种东⻄</li></ul><ul class="notion-list notion-list-disc notion-block-1bed37c21fbb8074ac80c3b3dc343c76"><li>在C语⾔的编译器开始编译之前，编译预处理程序（cpp）会把程序中的名字换成值完全的⽂本替换</li></ul><ul class="notion-list notion-list-disc notion-block-1bed37c21fbb8023a488ee983d907719"><li>gcc —save-temps</li></ul><ul class="notion-list notion-list-disc notion-block-1bed37c21fbb801c9a88ccd2f84a2a1c"><li>如果⼀个宏的值中有其他的宏的名字，也是会被替换的</li></ul><ul class="notion-list notion-list-disc notion-block-1bed37c21fbb80c9b026e374204b025f"><li>如果⼀个宏的值超过⼀⾏，最后⼀⾏之前的⾏末需要加<code class="notion-inline-code">\</code></li></ul><ul class="notion-list notion-list-disc notion-block-1bed37c21fbb803c8042c73cfa52f3e0"><li>宏的值后⾯出现的注释不会被当作宏的值的⼀部分</li></ul><div class="notion-text notion-block-1bed37c21fbb80d88ed0e8f1a414b697"><b>没有值的宏</b></div><div class="notion-text notion-block-1bed37c21fbb80c5bc2bce95bb4b72f1"><code class="notion-inline-code">#define _DEBUG</code></div><ul class="notion-list notion-list-disc notion-block-1bed37c21fbb808b8a83c02b2df641eb"><li>这类宏是⽤于条件编译的，后⾯有其他的编译预处理指令来检查这个宏是否已经被定义过了</li></ul><div class="notion-text notion-block-1bed37c21fbb80698174ea4b6017822b"><b>像函数的宏</b></div><div class="notion-text notion-block-1bed37c21fbb8031ac67f5ddda970519"><code class="notion-inline-code">#define cube(x) ((x)*(x)*(x))</code>宏可以带参数。<em>可以带多个参数</em>• <code class="notion-inline-code">#define MIN(a,b) ((a)&gt;(b)?(b):(a))</code>• 也可以组合（嵌套）使⽤其他宏</div><div class="notion-text notion-block-1bed37c21fbb807cbd6fe26453b72377"><b>带参数的宏的原则</b></div><div class="notion-text notion-block-1bed37c21fbb80c8b3aceeb804a4ca38">⼀切都要括号• 整个值要括号• 参数出现的每个地⽅都要括号• <code class="notion-inline-code">#define RADTODEG(x) ((x) * 57.29578)</code></div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1bed37c21fbb8072be5ee1b39053f9fd" data-id="1bed37c21fbb8072be5ee1b39053f9fd"><span><div id="1bed37c21fbb8072be5ee1b39053f9fd" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb8072be5ee1b39053f9fd" title="大程序结构"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">大程序结构</span></span></h2><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1bed37c21fbb8006bcc5e7872c559fd5" data-id="1bed37c21fbb8006bcc5e7872c559fd5"><span><div id="1bed37c21fbb8006bcc5e7872c559fd5" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb8006bcc5e7872c559fd5" title="编译单元"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">编译单元</span></span></h2><div class="notion-text notion-block-1bed37c21fbb80159904c64e3f747e0e">⼀个.c⽂件是⼀个编译单元• 编译器每次编译只处理⼀个编译单元</div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1bed37c21fbb80f9bc3fd72c048a7e69" data-id="1bed37c21fbb80f9bc3fd72c048a7e69"><span><div id="1bed37c21fbb80f9bc3fd72c048a7e69" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb80f9bc3fd72c048a7e69" title="项目"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">项目</span></span></h2><div class="notion-text notion-block-1bed37c21fbb803ea0ffd269c7b78d70">在Dev C中新建⼀个项目，然后把⼏个源代码⽂件加⼊进去• 对于项目，Dev C的编译会把⼀个项目中所有的源代码⽂件都编译后，链接起来• 有的IDE有分开的编译和构建两个按钮，前者是对单个源代码⽂件编译，后者是对整个项目做链接</div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1bed37c21fbb803d82f6e223036d2c80" data-id="1bed37c21fbb803d82f6e223036d2c80"><span><div id="1bed37c21fbb803d82f6e223036d2c80" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb803d82f6e223036d2c80" title="函数原型"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">函数原型</span></span></h2><div class="notion-text notion-block-1bed37c21fbb807c915efa2ad5bac00f">如果不给出函数原型，编译器会猜测你所调⽤的函数的所有参数都是int，返回类型也是int• 编译器在编译的时候只看当前的⼀个编译单元，它不会去看同⼀个项目中的其他编译单元以找出那个函数的原型• 如果你的函数并⾮如此，程序链接的时候不会出错• 但是执⾏的时候就不对了• 所以需要在调⽤函数的地⽅给出函数的原型，以告诉编译器那个函数究竟⻓什么样</div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1bed37c21fbb80908ae3f6bb64240844" data-id="1bed37c21fbb80908ae3f6bb64240844"><span><div id="1bed37c21fbb80908ae3f6bb64240844" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb80908ae3f6bb64240844" title="头文件"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">头文件</span></span></h2><div class="notion-text notion-block-1bed37c21fbb80e4b277c6b8a562ff60">把函数原型放到⼀个头⽂件（以.h结尾）中，在需要调⽤这个函数的源代码⽂件（.c⽂件）中#include这个头⽂件，就能让编译器在编译的时候知道函数的原型。</div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1bed37c21fbb80e4b855cee2c7338fce" data-id="1bed37c21fbb80e4b855cee2c7338fce"><span><div id="1bed37c21fbb80e4b855cee2c7338fce" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb80e4b855cee2c7338fce" title="include"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">include</span></span></h2><ul class="notion-list notion-list-disc notion-block-1bed37c21fbb8077a231feada180a701"><li>#include是⼀个编译预处理指令，和宏⼀样，在编译之前就处理了它把那个⽂件的全部⽂本内容原封不动地插⼊到它所在的地⽅所以也不是⼀定要在.c⽂件的最前⾯#include</li></ul><div class="notion-text notion-block-1bed37c21fbb801ba87bf769fa8003c6"><code class="notion-inline-code"><b>“”</b></code><b>还是</b><code class="notion-inline-code"><b>&lt;&gt;</b></code>？<code class="notion-inline-code">#include</code>有两种形式来指出要插⼊的⽂件<code class="notion-inline-code">“”</code>要求编译器⾸先在当前目录（.c⽂件所在的目录）寻找这个⽂件，如果没有，到编译器指定的目录去找• &lt;&gt;让编译器只在指定的目录去找• 编译器⾃⼰知道⾃⼰的标准库的头⽂件在哪⾥• 环境变量和编译器命令⾏参数也可以指定寻找头⽂件的目录</div><div class="notion-text notion-block-1bed37c21fbb8014b07ed2ca306dd421"><code class="notion-inline-code"><b>#include</b></code><b>的误区</b></div><div class="notion-text notion-block-1bed37c21fbb8057a300cb1643619a30"><code class="notion-inline-code">#include</code>不是⽤来引⼊库的• <code class="notion-inline-code">stdio.h</code>⾥只有<code class="notion-inline-code">printf</code>的原型，<code class="notion-inline-code">printf</code>的代码在另外的地⽅，某个<code class="notion-inline-code">.lib(Windows)</code>或<code class="notion-inline-code">.a(Unix)</code>中• 现在的C语⾔编译器默认会引⼊所有的标准库• <code class="notion-inline-code">#include &lt;stdio.h&gt;</code>只是为了让编译器知道<code class="notion-inline-code">printf</code>函数的原型，保证你调⽤时给出的参数值是正确的类型</div><div class="notion-text notion-block-1bed37c21fbb806f9c0de68e9b3fbac9"><b>头文件</b></div><div class="notion-text notion-block-1bed37c21fbb80639dabf98ca4c4bb97">在使⽤和定义这个函数的地⽅都应该<code class="notion-inline-code">#include</code>这个头⽂件• ⼀般的做法就是任何.c都有对应的同名的.h，把所有对外公开的函数的原型和全局变量的声明都放进去</div><div class="notion-text notion-block-1bed37c21fbb80eca4a9dc08f148579f"><b>不对外公开的函数</b></div><div class="notion-text notion-block-1bed37c21fbb8049a61dd99b6f2ab39a">在函数前⾯加上<code class="notion-inline-code">static</code>就使得它成为只能在所在的编译单元中被使⽤的函数• 在全局变量前⾯加上<code class="notion-inline-code">static</code>就使得它成为只能在所在的编译单元中被使⽤的全局变量</div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1bed37c21fbb8095a27be689dfe07c74" data-id="1bed37c21fbb8095a27be689dfe07c74"><span><div id="1bed37c21fbb8095a27be689dfe07c74" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb8095a27be689dfe07c74" title="声明"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">声明</span></span></h2><div class="notion-text notion-block-1bed37c21fbb80cfbdc4fdd7b6a8404f"><code class="notion-inline-code">int i;</code>是变量的定义，<code class="notion-inline-code">extern int i;</code>是变量的声明</div><div class="notion-text notion-block-1bed37c21fbb80a086a5c3c65c361b72"><b>声明和定义的区别</b></div><div class="notion-text notion-block-1bed37c21fbb80b397c8c8c73b4e2615">声明是不产⽣代码的东⻄• 函数原型• 变量声明• 结构声明• 宏声明• 枚举声明• 类型声明• inline函数• 定义是产⽣代码的东⻄</div><div class="notion-text notion-block-1bed37c21fbb80fb9629e7c1fe0f8bf9"><b>重复声明</b></div><div class="notion-text notion-block-1bed37c21fbb80d28e8eed7a6d4872b7">同⼀个编译单元⾥，同名的结构不能被重复声明</div><ul class="notion-list notion-list-disc notion-block-1bed37c21fbb80e68824e674cddc6898"><li>如果你的头⽂件⾥有结构的声明，很难这个头⽂件不</li></ul><div class="notion-text notion-block-1bed37c21fbb80e49cd9e4fc6ecc580c">会在⼀个编译单元⾥被#include多次</div><ul class="notion-list notion-list-disc notion-block-1bed37c21fbb8030af42ea9dad5a0ec1"><li>所以需要“标准头⽂件结构”</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1bed37c21fbb80c3a50cca967ab1bb6f"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="http://ocaqc5g59.bkt.clouddn.com/2016121601.png?spaceId=f49e6c6a-4871-41f2-a2e0-20fbd03c9e52&amp;t=1bed37c2-1fbb-80c3-a50c-ca967ab1bb6f" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1bed37c21fbb80f3b452cfb63dc12104">向前声明</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1bed37c21fbb80988c04eba073b07e25"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="http://ocaqc5g59.bkt.clouddn.com/2016121602.png?spaceId=f49e6c6a-4871-41f2-a2e0-20fbd03c9e52&amp;t=1bed37c2-1fbb-8098-8c04-eba073b07e25" alt="notion image" loading="lazy" decoding="async"/></div></figure><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1bed37c21fbb801d945ede960d48f59b" data-id="1bed37c21fbb801d945ede960d48f59b"><span><div id="1bed37c21fbb801d945ede960d48f59b" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb801d945ede960d48f59b" title="文件"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">文件</span></span></h2><div class="notion-text notion-block-1bed37c21fbb80b89647cae39453c9ac"><a class="notion-link" href="http://ocaqc5g59.bkt.clouddn.com/C_File.pdf" target="_blank" rel="noopener noreferrer">pdf演示</a></div></main></div>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Java]]></title>
            <link>https://blog.superhx.cn/article/1bed37c2-1fbb-805a-866f-f823d073fdcf</link>
            <guid>https://blog.superhx.cn/article/1bed37c2-1fbb-805a-866f-f823d073fdcf</guid>
            <pubDate>Mon, 15 Oct 2018 00:00:00 GMT</pubDate>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-1bed37c21fbb805a866ff823d073fdcf"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1bed37c21fbb808f8c36c83d92153fe5" data-id="1bed37c21fbb808f8c36c83d92153fe5"><span><div id="1bed37c21fbb808f8c36c83d92153fe5" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb808f8c36c83d92153fe5" title="帮助文档制作"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">帮助文档制作</span></span></h2><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1bed37c21fbb807abfd3cda7e4fc2f41"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://cdn.nlark.com/yuque/0/2021/png/99644/1623814567021-241a3628-b881-483c-8003-f066457349bf.png?spaceId=f49e6c6a-4871-41f2-a2e0-20fbd03c9e52&amp;t=1bed37c2-1fbb-807a-bfd3-cda7e4fc2f41" alt="notion image" loading="lazy" decoding="async"/></div></figure><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1bed37c21fbb8051a0c5de6f35d1baff" data-id="1bed37c21fbb8051a0c5de6f35d1baff"><span><div id="1bed37c21fbb8051a0c5de6f35d1baff" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb8051a0c5de6f35d1baff" title="各种运算"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">各种运算</span></span></h2><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1bed37c21fbb80ff8545f64fc28f84e4"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://cdn.nlark.com/yuque/0/2021/png/99644/1623814567044-cd478284-3ee6-4bcc-bc8b-24511a2cbebb.png?spaceId=f49e6c6a-4871-41f2-a2e0-20fbd03c9e52&amp;t=1bed37c2-1fbb-80ff-8545-f64fc28f84e4" alt="notion image" loading="lazy" decoding="async"/></div></figure><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1bed37c21fbb8029bb95e012df52d3c4" data-id="1bed37c21fbb8029bb95e012df52d3c4"><span><div id="1bed37c21fbb8029bb95e012df52d3c4" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb8029bb95e012df52d3c4" title="选择结构和循环结构"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">选择结构和循环结构</span></span></h2><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1bed37c21fbb80d6b855f0e68af398f7"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://cdn.nlark.com/yuque/0/2021/png/99644/1623814567169-23a642f5-d725-46fa-b850-3be3925fb48c.png?spaceId=f49e6c6a-4871-41f2-a2e0-20fbd03c9e52&amp;t=1bed37c2-1fbb-80d6-b855-f0e68af398f7" alt="notion image" loading="lazy" decoding="async"/></div></figure><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1bed37c21fbb802a817ade24d4e452db" data-id="1bed37c21fbb802a817ade24d4e452db"><span><div id="1bed37c21fbb802a817ade24d4e452db" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb802a817ade24d4e452db" title="数组"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">数组</span></span></h2><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1bed37c21fbb80a5a701c2e9247fec9e"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://cdn.nlark.com/yuque/0/2021/png/99644/1623814567018-bc8d8707-e697-43a9-afb0-ff08a170ab02.png?spaceId=f49e6c6a-4871-41f2-a2e0-20fbd03c9e52&amp;t=1bed37c2-1fbb-80a5-a701-c2e9247fec9e" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1bed37c21fbb8082b911f0586335b88d"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://cdn.nlark.com/yuque/0/2021/png/99644/1623814567017-0a8d61d6-aaeb-44d2-8064-ea4a359ce513.png?spaceId=f49e6c6a-4871-41f2-a2e0-20fbd03c9e52&amp;t=1bed37c2-1fbb-8082-b911-f0586335b88d" alt="notion image" loading="lazy" decoding="async"/></div></figure><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1bed37c21fbb806f8364d46e8c007e14" data-id="1bed37c21fbb806f8364d46e8c007e14"><span><div id="1bed37c21fbb806f8364d46e8c007e14" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb806f8364d46e8c007e14" title="方法、构造函数、重载"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">方法、构造函数、重载</span></span></h2><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1bed37c21fbb80e48831ff7369bdd11d"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://cdn.nlark.com/yuque/0/2021/png/99644/1623814567021-3e1c11b2-5244-46f5-9642-3d8659d1ff23.png?spaceId=f49e6c6a-4871-41f2-a2e0-20fbd03c9e52&amp;t=1bed37c2-1fbb-80e4-8831-ff7369bdd11d" alt="notion image" loading="lazy" decoding="async"/></div></figure><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1bed37c21fbb809c9118fb627efa4c66" data-id="1bed37c21fbb809c9118fb627efa4c66"><span><div id="1bed37c21fbb809c9118fb627efa4c66" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb809c9118fb627efa4c66" title="static、设计模式"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">static、设计模式</span></span></h2><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1bed37c21fbb800db3d9fd143486173b"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://cdn.nlark.com/yuque/0/2021/png/99644/1623814567051-11dc3598-372a-4d61-8622-5a3d52312eed.png?spaceId=f49e6c6a-4871-41f2-a2e0-20fbd03c9e52&amp;t=1bed37c2-1fbb-800d-b3d9-fd143486173b" alt="notion image" loading="lazy" decoding="async"/></div></figure><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1bed37c21fbb80a9ab15f534c9865326" data-id="1bed37c21fbb80a9ab15f534c9865326"><span><div id="1bed37c21fbb80a9ab15f534c9865326" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb80a9ab15f534c9865326" title="继承、final、抽象类、接口、多态"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">继承、final、抽象类、接口、多态</span></span></h2><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1bed37c21fbb8021a8bcedaf3c31fae0"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://cdn.nlark.com/yuque/0/2021/png/99644/1623814567096-a6e09787-986d-4f79-b172-81d89f1d97eb.png?spaceId=f49e6c6a-4871-41f2-a2e0-20fbd03c9e52&amp;t=1bed37c2-1fbb-8021-a8bc-edaf3c31fae0" alt="notion image" loading="lazy" decoding="async"/></div></figure><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1bed37c21fbb80e7b222e9ae543f202c" data-id="1bed37c21fbb80e7b222e9ae543f202c"><span><div id="1bed37c21fbb80e7b222e9ae543f202c" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb80e7b222e9ae543f202c" title="内部类"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">内部类</span></span></h2><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1bed37c21fbb8081b06be3b4796a067b"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://cdn.nlark.com/yuque/0/2021/png/99644/1623814567050-81410acd-27a9-4a00-82f6-5792030f8090.png?spaceId=f49e6c6a-4871-41f2-a2e0-20fbd03c9e52&amp;t=1bed37c2-1fbb-8081-b06b-e3b4796a067b" alt="notion image" loading="lazy" decoding="async"/></div></figure><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1bed37c21fbb80ccb91bd105a44adfce" data-id="1bed37c21fbb80ccb91bd105a44adfce"><span><div id="1bed37c21fbb80ccb91bd105a44adfce" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb80ccb91bd105a44adfce" title="异常"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">异常</span></span></h2><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1bed37c21fbb80ffb85cfdb9832f29c0"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://cdn.nlark.com/yuque/0/2021/png/99644/1623814567058-b22ad524-11a2-425d-9945-506b9b509238.png?spaceId=f49e6c6a-4871-41f2-a2e0-20fbd03c9e52&amp;t=1bed37c2-1fbb-80ff-b85c-fdb9832f29c0" alt="notion image" loading="lazy" decoding="async"/></div></figure><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1bed37c21fbb802badd3d90214104e7a" data-id="1bed37c21fbb802badd3d90214104e7a"><span><div id="1bed37c21fbb802badd3d90214104e7a" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb802badd3d90214104e7a" title="多线程"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">多线程</span></span></h2><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1bed37c21fbb80e2a746d6c7714590ae"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://cdn.nlark.com/yuque/0/2021/png/99644/1623814567052-90c92624-1ee6-46e5-85e4-b7dfde02472d.png?spaceId=f49e6c6a-4871-41f2-a2e0-20fbd03c9e52&amp;t=1bed37c2-1fbb-80e2-a746-d6c7714590ae" alt="notion image" loading="lazy" decoding="async"/></div></figure><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1bed37c21fbb8058a10dfc50e8a4a30c" data-id="1bed37c21fbb8058a10dfc50e8a4a30c"><span><div id="1bed37c21fbb8058a10dfc50e8a4a30c" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb8058a10dfc50e8a4a30c" title="String"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">String</span></span></h2><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1bed37c21fbb8069ac56ca44842f7c4a"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://cdn.nlark.com/yuque/0/2021/png/99644/1623814567132-1639bd34-e0dc-4c8e-bf02-aca0a8375890.png?spaceId=f49e6c6a-4871-41f2-a2e0-20fbd03c9e52&amp;t=1bed37c2-1fbb-8069-ac56-ca44842f7c4a" alt="notion image" loading="lazy" decoding="async"/></div></figure><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1bed37c21fbb806f8fe0f109bf057552" data-id="1bed37c21fbb806f8fe0f109bf057552"><span><div id="1bed37c21fbb806f8fe0f109bf057552" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb806f8fe0f109bf057552" title="StringBuffered和StringBuilder"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">StringBuffered和StringBuilder</span></span></h2><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1bed37c21fbb80b59eb5d916b3a0a5d8"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://cdn.nlark.com/yuque/0/2021/png/99644/1623814567093-3bb47a87-94c8-4cbc-9ccd-5c6953082ece.png?spaceId=f49e6c6a-4871-41f2-a2e0-20fbd03c9e52&amp;t=1bed37c2-1fbb-80b5-9eb5-d916b3a0a5d8" alt="notion image" loading="lazy" decoding="async"/></div></figure><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1bed37c21fbb80eeac21c1daac049a2a" data-id="1bed37c21fbb80eeac21c1daac049a2a"><span><div id="1bed37c21fbb80eeac21c1daac049a2a" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb80eeac21c1daac049a2a" title="8种基本数据类型包裹类型和Scanner"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">8种基本数据类型包裹类型和Scanner</span></span></h2><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1bed37c21fbb802eac62cd3167bf8ab7"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://cdn.nlark.com/yuque/0/2021/png/99644/1623814567080-91b778d2-ae43-40a5-a653-64c62ead7015.png?spaceId=f49e6c6a-4871-41f2-a2e0-20fbd03c9e52&amp;t=1bed37c2-1fbb-802e-ac62-cd3167bf8ab7" alt="notion image" loading="lazy" decoding="async"/></div></figure><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1bed37c21fbb8024a253faebb4dfc2a4" data-id="1bed37c21fbb8024a253faebb4dfc2a4"><span><div id="1bed37c21fbb8024a253faebb4dfc2a4" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb8024a253faebb4dfc2a4" title="Collection&lt; E &gt;集合框架"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><code class="notion-inline-code">Collection&lt; E &gt;</code>集合框架</span></span></h2><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1bed37c21fbb803e8e95f7779176cdef"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://cdn.nlark.com/yuque/0/2021/png/99644/1623814567094-6e007ba2-9639-4864-96e5-aa62441a9f5d.png?spaceId=f49e6c6a-4871-41f2-a2e0-20fbd03c9e52&amp;t=1bed37c2-1fbb-803e-8e95-f7779176cdef" alt="notion image" loading="lazy" decoding="async"/></div></figure><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1bed37c21fbb8025aa6afabba54af608" data-id="1bed37c21fbb8025aa6afabba54af608"><span><div id="1bed37c21fbb8025aa6afabba54af608" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb8025aa6afabba54af608" title="接口List&lt; E &gt;"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">接口<code class="notion-inline-code">List&lt; E &gt;</code></span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1bed37c21fbb80879b0ade1de40dee2f"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://cdn.nlark.com/yuque/0/2021/png/99644/1623814567085-e4d1086f-4f8d-40a5-9eb3-43e77fe33e23.png?spaceId=f49e6c6a-4871-41f2-a2e0-20fbd03c9e52&amp;t=1bed37c2-1fbb-8087-9b0a-de1de40dee2f" alt="notion image" loading="lazy" decoding="async"/></div></figure><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1bed37c21fbb807298d3e6ff21a6c970" data-id="1bed37c21fbb807298d3e6ff21a6c970"><span><div id="1bed37c21fbb807298d3e6ff21a6c970" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb807298d3e6ff21a6c970" title="接口Set&lt; E &gt;"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">接口<code class="notion-inline-code">Set&lt; E &gt;</code></span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1bed37c21fbb80258c31d03475ee9845"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://cdn.nlark.com/yuque/0/2021/png/99644/1623814567130-78d0b663-40a5-4d21-b16d-b89584ab34bd.png?spaceId=f49e6c6a-4871-41f2-a2e0-20fbd03c9e52&amp;t=1bed37c2-1fbb-8025-8c31-d03475ee9845" alt="notion image" loading="lazy" decoding="async"/></div></figure><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1bed37c21fbb80508e09da503a7905b4" data-id="1bed37c21fbb80508e09da503a7905b4"><span><div id="1bed37c21fbb80508e09da503a7905b4" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb80508e09da503a7905b4" title="泛型"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">泛型</span></span></h2><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1bed37c21fbb803aa892cbed036cfbc9"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://cdn.nlark.com/yuque/0/2021/png/99644/1623814567114-9a8aeb2c-e2b9-46c2-9ccd-4cc34b510fd7.png?spaceId=f49e6c6a-4871-41f2-a2e0-20fbd03c9e52&amp;t=1bed37c2-1fbb-803a-a892-cbed036cfbc9" alt="notion image" loading="lazy" decoding="async"/></div></figure><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1bed37c21fbb801a8cfff02cf05a889d" data-id="1bed37c21fbb801a8cfff02cf05a889d"><span><div id="1bed37c21fbb801a8cfff02cf05a889d" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb801a8cfff02cf05a889d" title="Map&lt; K,V &gt;集合框架"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">Map&lt; K,V &gt;集合框架</span></span></h2><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1bed37c21fbb800dabaae806b127eca3"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://cdn.nlark.com/yuque/0/2021/png/99644/1623814567095-1e973385-2827-4493-83c8-7e85453bdf5c.png?spaceId=f49e6c6a-4871-41f2-a2e0-20fbd03c9e52&amp;t=1bed37c2-1fbb-800d-abaa-e806b127eca3" alt="notion image" loading="lazy" decoding="async"/></div></figure><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1bed37c21fbb805c8292d496eeff1ff3" data-id="1bed37c21fbb805c8292d496eeff1ff3"><span><div id="1bed37c21fbb805c8292d496eeff1ff3" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb805c8292d496eeff1ff3" title="集合工具"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">集合工具</span></span></h2><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1bed37c21fbb802c9f2ff83b71269a89"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://cdn.nlark.com/yuque/0/2021/png/99644/1623814567141-960c809e-9e13-4fb8-ad72-b8b04cd30b52.png?spaceId=f49e6c6a-4871-41f2-a2e0-20fbd03c9e52&amp;t=1bed37c2-1fbb-802c-9f2f-f83b71269a89" alt="notion image" loading="lazy" decoding="async"/></div></figure><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1bed37c21fbb80ed9f0cc6abd10b0f36" data-id="1bed37c21fbb80ed9f0cc6abd10b0f36"><span><div id="1bed37c21fbb80ed9f0cc6abd10b0f36" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb80ed9f0cc6abd10b0f36" title="System、Runtime、Date、Math"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">System、Runtime、Date、Math</span></span></h2><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1bed37c21fbb8095972dec7d66e4b95f"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://cdn.nlark.com/yuque/0/2021/png/99644/1623814567082-ff342f44-59c0-411d-b3b7-00bddab3ea05.png?spaceId=f49e6c6a-4871-41f2-a2e0-20fbd03c9e52&amp;t=1bed37c2-1fbb-8095-972d-ec7d66e4b95f" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1bed37c21fbb80a7ae7fe9fe39ecd330"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://cdn.nlark.com/yuque/0/2021/png/99644/1623814567124-78d84606-0897-41e8-85f2-6e07cf0485dc.png?spaceId=f49e6c6a-4871-41f2-a2e0-20fbd03c9e52&amp;t=1bed37c2-1fbb-80a7-ae7f-e9fe39ecd330" alt="notion image" loading="lazy" decoding="async"/></div></figure><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1bed37c21fbb80f2827cf66aa3965de1" data-id="1bed37c21fbb80f2827cf66aa3965de1"><span><div id="1bed37c21fbb80f2827cf66aa3965de1" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb80f2827cf66aa3965de1" title="I/O"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">I/O</span></span></h2><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1bed37c21fbb80c5b223dd2c12cfb89e"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://cdn.nlark.com/yuque/0/2021/png/99644/1623814567133-4c5897d2-9612-4c15-b2db-62b119261d63.png?spaceId=f49e6c6a-4871-41f2-a2e0-20fbd03c9e52&amp;t=1bed37c2-1fbb-80c5-b223-dd2c12cfb89e" alt="notion image" loading="lazy" decoding="async"/></div></figure><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1bed37c21fbb80efbaedee1cfd44c998" data-id="1bed37c21fbb80efbaedee1cfd44c998"><span><div id="1bed37c21fbb80efbaedee1cfd44c998" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb80efbaedee1cfd44c998" title="网络编程"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">网络编程</span></span></h2><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1bed37c21fbb8085a49de968212f399e"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img src="https://cdn.nlark.com/yuque/0/2021/png/99644/1623814567144-a272f5de-a6ad-4223-862d-91b58abafe20.png?spaceId=f49e6c6a-4871-41f2-a2e0-20fbd03c9e52&amp;t=1bed37c2-1fbb-8085-a49d-e968212f399e" alt="notion image" loading="lazy" decoding="async"/></div></figure><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1bed37c21fbb80688a6fd5b45804f911" data-id="1bed37c21fbb80688a6fd5b45804f911"><span><div id="1bed37c21fbb80688a6fd5b45804f911" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb80688a6fd5b45804f911" title="Java8新特性"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">Java8新特性</span></span></h2><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1bed37c21fbb80a6ac5ae3b204083d2a" data-id="1bed37c21fbb80a6ac5ae3b204083d2a"><span><div id="1bed37c21fbb80a6ac5ae3b204083d2a" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb80a6ac5ae3b204083d2a" title="接口定义增强"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">接口定义增强</span></span></h3><div class="notion-text notion-block-1bed37c21fbb80f9866fe8b48543c805">接口中使用<code class="notion-inline-code">default</code>或<code class="notion-inline-code">static</code>定义方法的意思是避免重复实现相同的代码；接口的使用还应该以抽象方法为主。</div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1bed37c21fbb80d98441c790c96167ed" data-id="1bed37c21fbb80d98441c790c96167ed"><span><div id="1bed37c21fbb80d98441c790c96167ed" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb80d98441c790c96167ed" title="Lamda表达式"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">Lamda表达式</span></span></h3><div class="notion-text notion-block-1bed37c21fbb80c096aac7f7e14f840c">三种形式</div><ul class="notion-list notion-list-disc notion-block-1bed37c21fbb80b89045e0006ed424b4"><li><code class="notion-inline-code">(参数)-&gt;单行语句;</code></li></ul><ul class="notion-list notion-list-disc notion-block-1bed37c21fbb80738912e1157ce21392"><li><code class="notion-inline-code">(参数)-&gt;{};</code></li></ul><ul class="notion-list notion-list-disc notion-block-1bed37c21fbb8091a6f4e4f5cddc7549"><li><code class="notion-inline-code">(参数)-&gt;表达式;</code></li></ul><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1bed37c21fbb8098add6d7a9cc4fd196" data-id="1bed37c21fbb8098add6d7a9cc4fd196"><span><div id="1bed37c21fbb8098add6d7a9cc4fd196" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb8098add6d7a9cc4fd196" title="方法引用"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">方法引用</span></span></h3><ul class="notion-list notion-list-disc notion-block-1bed37c21fbb8017a8dbfff97545a80b"><li>引用静态方法：类名称::static方法名称;</li></ul><ul class="notion-list notion-list-disc notion-block-1bed37c21fbb801fa4c6f76f0b44e14f"><li>引用某个对象的方法：实例化对象::普通方法;</li></ul><ul class="notion-list notion-list-disc notion-block-1bed37c21fbb80f2a881e48044ec6f52"><li>引用特定类型的方法：特定类::普通方法;</li></ul><ul class="notion-list notion-list-disc notion-block-1bed37c21fbb80cc8163fedc69377aed"><li>引用构造方法：类名称::new;</li></ul></main></div>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[英语语法]]></title>
            <link>https://blog.superhx.cn/article/1bed37c2-1fbb-8023-818f-f69ede7850e0</link>
            <guid>https://blog.superhx.cn/article/1bed37c2-1fbb-8023-818f-f69ede7850e0</guid>
            <pubDate>Thu, 26 Sep 2019 00:00:00 GMT</pubDate>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-1bed37c21fbb8023818ff69ede7850e0"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1bed37c21fbb806db3dce59099a7ea90" data-id="1bed37c21fbb806db3dce59099a7ea90"><span><div id="1bed37c21fbb806db3dce59099a7ea90" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb806db3dce59099a7ea90" title="基础句型"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">基础句型</span></span></h2><div class="notion-text notion-block-1bed37c21fbb808bb91de6aed729b3bb"><b>5大句型</b>：主谓（SV）、主谓宾（SVO）、主系表（SVC）、主谓宾宾（SVOO）、主谓宾宾补（SVOOC）</div><ol start="1" class="notion-list notion-list-numbered notion-block-1bed37c21fbb805ab572fb8e5fad755a" style="list-style-type:decimal"><li>主-v1-&gt;</li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-1bed37c21fbb8023a955da613b75e4d9" style="list-style-type:decimal"><li>主-v2-&gt;宾</li></ol><ol start="3" class="notion-list notion-list-numbered notion-block-1bed37c21fbb809b8930c66bfccd9ee4" style="list-style-type:decimal"><li>主-v3-&gt;表</li></ol><ol start="4" class="notion-list notion-list-numbered notion-block-1bed37c21fbb80f987e6f37bc978d184" style="list-style-type:decimal"><li>主-v4-&gt;宾宾</li></ol><ol start="5" class="notion-list notion-list-numbered notion-block-1bed37c21fbb8099843be72a0a6b0425" style="list-style-type:decimal"><li>主-v2-&gt;宾补</li></ol><div class="notion-text notion-block-1bed37c21fbb8089acf4f52eef68d53b">动词词性：v1：不及物动词 vi.；v2：及物动词 vt.；v3：系动词（link verb）；v4：带有“给”的含义</div><div class="notion-text notion-block-1bed37c21fbb809aa86eefa420f774c7"><b>8大成分</b></div><table class="notion-simple-table notion-block-1bed37c21fbb80c383c7d4a8a3ec90d5"><tbody><tr class="notion-simple-table-row notion-block-1bed37c21fbb80459a7dd6dabd96c22b"><td class="" style="width:120px"><div class="notion-simple-table-cell">成分</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">地位</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">功能</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">性质</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">形式</div></td></tr><tr class="notion-simple-table-row notion-block-1bed37c21fbb807fbcd1cf2a643f2cab"><td class="" style="width:120px"><div class="notion-simple-table-cell">主语</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">主干成分</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">动作发出者</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">n.</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">词/短语/句子</div></td></tr><tr class="notion-simple-table-row notion-block-1bed37c21fbb807d89fae4facf97ffa8"><td class="" style="width:120px"><div class="notion-simple-table-cell">宾语</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">ㅤ</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">动作接收者</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">n.</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">词/短语/句子</div></td></tr><tr class="notion-simple-table-row notion-block-1bed37c21fbb80f2ac56e225d8f16d69"><td class="" style="width:120px"><div class="notion-simple-table-cell">谓语</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">ㅤ</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">动作</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">v.</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">时态/语态/情态/否定</div></td></tr><tr class="notion-simple-table-row notion-block-1bed37c21fbb808a8f80efdbeea5aa57"><td class="" style="width:120px"><div class="notion-simple-table-cell">表语</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">ㅤ</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">表现说明主语</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">n./a./ad.</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">词/短语/句子</div></td></tr><tr class="notion-simple-table-row notion-block-1bed37c21fbb80d9b693e7e12a6d2a7a"><td class="" style="width:120px"><div class="notion-simple-table-cell">补语</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">ㅤ</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">补充说明宾语</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">n./a./ad.</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">词/短语/句子</div></td></tr><tr class="notion-simple-table-row notion-block-1bed37c21fbb8071b30dc0e195af90fc"><td class="" style="width:120px"><div class="notion-simple-table-cell">定语</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">修饰成分</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">修饰、限定名词</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">a.</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">词/短语/句子</div></td></tr><tr class="notion-simple-table-row notion-block-1bed37c21fbb8026bcbee0ab934b050e"><td class="" style="width:120px"><div class="notion-simple-table-cell">状语</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">ㅤ</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">添加、补充状态</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">ad.</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">词/短语/句子</div></td></tr><tr class="notion-simple-table-row notion-block-1bed37c21fbb805ba6b6f34cf7831e11"><td class="" style="width:120px"><div class="notion-simple-table-cell">同位语</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">ㅤ</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">补充+解释</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">n.</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">词/短语/句子</div></td></tr></tbody></table><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1bed37c21fbb80d79489fa391cde3dda" data-id="1bed37c21fbb80d79489fa391cde3dda"><span><div id="1bed37c21fbb80d79489fa391cde3dda" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb80d79489fa391cde3dda" title="三大修饰成分"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">三大修饰成分</span></span></h3><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1bed37c21fbb809ca071e76926e57efd" data-id="1bed37c21fbb809ca071e76926e57efd"><span><div id="1bed37c21fbb809ca071e76926e57efd" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb809ca071e76926e57efd" title="定语"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">定语</span></span></h4><blockquote class="notion-quote notion-block-1bed37c21fbb80c6ac4ce67c48490fa4"><div>修饰名词成分。</div></blockquote><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1bed37c21fbb803f847bf51cadcddf29"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A4adf18ff-1e5a-46bb-aa21-53093d6a83df%3Aimage.png?table=block&amp;id=1bed37c2-1fbb-803f-847b-f51cadcddf29&amp;t=1bed37c2-1fbb-803f-847b-f51cadcddf29" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-1bed37c21fbb80128b2ef466204cd39e">前：常为形容词或多个形容词并列。</div><div class="notion-text notion-block-1bed37c21fbb806287c4f18e66e7e55b">后：常为短语、定语从句、动词不定式等。</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1bed37c21fbb806399bbeab723a85b74" data-id="1bed37c21fbb806399bbeab723a85b74"><span><div id="1bed37c21fbb806399bbeab723a85b74" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb806399bbeab723a85b74" title="状语"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">状语</span></span></h4><ol start="1" class="notion-list notion-list-numbered notion-block-1bed37c21fbb809c8bfaca9f7f2e14e8" style="list-style-type:decimal"><li>修饰形容词，对定语的限制</li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-1bed37c21fbb80a89f7edd5fcaa49f85" style="list-style-type:decimal"><li>修饰一件事</li></ol><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1bed37c21fbb80a08072d0573806504b"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A70db0567-3ed4-40bf-a186-31217c8180bf%3Aimage.png?table=block&amp;id=1bed37c2-1fbb-80a0-8072-d0573806504b&amp;t=1bed37c2-1fbb-80a0-8072-d0573806504b" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1bed37c21fbb80318293f71027708464" data-id="1bed37c21fbb80318293f71027708464"><span><div id="1bed37c21fbb80318293f71027708464" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb80318293f71027708464" title="同位语"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">同位语</span></span></h4><div class="notion-text notion-block-1bed37c21fbb804a8bf9ff393ed2d1cd">功能：补充说明名词性成分</div><div class="notion-text notion-block-1bed37c21fbb80a3a52dc8cafdd6203f">特征：本身为名词性成分</div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1bed37c21fbb804a9960da7e7e8f8613" data-id="1bed37c21fbb804a9960da7e7e8f8613"><span><div id="1bed37c21fbb804a9960da7e7e8f8613" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb804a9960da7e7e8f8613" title="五大主干成分"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">五大主干成分</span></span></h3><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1bed37c21fbb802fa2abf2e3bae35414" data-id="1bed37c21fbb802fa2abf2e3bae35414"><span><div id="1bed37c21fbb802fa2abf2e3bae35414" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb802fa2abf2e3bae35414" title="谓语"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">谓语</span></span></h4><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1bed37c21fbb8081b507ca808412e5fc"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Abe57b956-9d87-4553-8383-6a9c873ab5e7%3Aimage.png?table=block&amp;id=1bed37c2-1fbb-8081-b507-ca808412e5fc&amp;t=1bed37c2-1fbb-8081-b507-ca808412e5fc" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1bed37c21fbb80868956c8efd46e733c" data-id="1bed37c21fbb80868956c8efd46e733c"><span><div id="1bed37c21fbb80868956c8efd46e733c" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb80868956c8efd46e733c" title="时态"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">时态</span></span></h4><ol start="1" class="notion-list notion-list-numbered notion-block-1bed37c21fbb8075844ad9166f0280c3" style="list-style-type:decimal"><li>一般</li></ol><ul class="notion-list notion-list-disc notion-block-1bed37c21fbb80e28dbdebe2e7f9c5c7"><li>一般现在时</li></ul><div class="notion-text notion-block-1bed37c21fbb800387b4d12c63b925b0">I drink coffee every day.</div><ul class="notion-list notion-list-disc notion-block-1bed37c21fbb80efaf9bd637250e6a41"><li>一般过去时</li></ul><div class="notion-text notion-block-1bed37c21fbb80dba430d7be0fdb0807">The US declared independence in 1776.</div><ul class="notion-list notion-list-disc notion-block-1bed37c21fbb80ba9f58e606ecc1d617"><li>一般将来时</li></ul><div class="notion-text notion-block-1bed37c21fbb80558056d4da011822aa">The athletes will leave Olympic village tomorrow.</div><ol start="1" class="notion-list notion-list-numbered notion-block-1bed37c21fbb80709516de547cb5e544" style="list-style-type:decimal"><li>进行（持续）</li></ol><ul class="notion-list notion-list-disc notion-block-1bed37c21fbb8016b22ad993f3f9c6a0"><li>现在进行时</li></ul><div class="notion-text notion-block-1bed37c21fbb803d9849c99db2d018e7">I am studing instead of playing games now.</div><ul class="notion-list notion-list-disc notion-block-1bed37c21fbb80268bf1e27bdf07f0d4"><li>过去进行时</li></ul><div class="notion-text notion-block-1bed37c21fbb804cb420eb270a25452e">I was playing ChiJi when the phone call came in.</div><div class="notion-text notion-block-1bed37c21fbb805790d8d0c064c7b17f"><b>过去时态中的when和while</b>：</div><div class="notion-text notion-block-1bed37c21fbb80dead7bed883cf339b8">when后跟短动作，一般用一般过去时；while后跟长动作，一般用过去进行时，若句中讨论的两个动作都是长动作，则均用过去进行时。</div><ul class="notion-list notion-list-disc notion-block-1bed37c21fbb8034bcbef273147c37f7"><li>将来进行时</li></ul><div class="notion-text notion-block-1bed37c21fbb80ca9e3ddd9c97ee9cb4">Don&#x27;t call me at six tomorrow, I&#x27;ll still be sleeping then.</div><ol start="1" class="notion-list notion-list-numbered notion-block-1bed37c21fbb803bbac8fc8944baddb6" style="list-style-type:decimal"><li>完成</li></ol><ul class="notion-list notion-list-disc notion-block-1bed37c21fbb80f9b767e8de384fe3a5"><li>现在完成时</li></ul><div class="notion-text notion-block-1bed37c21fbb80f48252e994b7a56267">Till now, I have passed the post-graduate entrance examination.</div><ul class="notion-list notion-list-disc notion-block-1bed37c21fbb807ea4e5c20d867ee265"><li>过去完成时</li></ul><div class="notion-text notion-block-1bed37c21fbb80a3bd35c43127f184d1">I had not learnt any konwledge of grammar before I toooks CET-6.</div><ul class="notion-list notion-list-disc notion-block-1bed37c21fbb805abd54c83194baf891"><li>将来完成时</li></ul><div class="notion-text notion-block-1bed37c21fbb80a7b2a3f1d9430584c2">Next year, I will have learnt English for 18 years.</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1bed37c21fbb80cab4d3c3bcff393c67" data-id="1bed37c21fbb80cab4d3c3bcff393c67"><span><div id="1bed37c21fbb80cab4d3c3bcff393c67" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb80cab4d3c3bcff393c67" title="语态"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">语态</span></span></h4><table class="notion-simple-table notion-block-1bed37c21fbb808ebdd5dd0c23a6a207"><tbody><tr class="notion-simple-table-row notion-simple-table-header-row notion-block-1bed37c21fbb80f4b8a2f1cc01e855e9"><td class="" style="width:120px"><div class="notion-simple-table-cell">主动</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">一般</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">进行</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">完成</div></td></tr><tr class="notion-simple-table-row notion-block-1bed37c21fbb807f9fe1e9523a202bf8"><td class="" style="width:120px"><div class="notion-simple-table-cell">过去</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">did</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">was/were doing</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">had done</div></td></tr><tr class="notion-simple-table-row notion-block-1bed37c21fbb80309b03f450cf36044e"><td class="" style="width:120px"><div class="notion-simple-table-cell">现在</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">do/does</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">am/is/are doing</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">have/has done</div></td></tr><tr class="notion-simple-table-row notion-block-1bed37c21fbb809d8636db585b468e68"><td class="" style="width:120px"><div class="notion-simple-table-cell">将来</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">will do</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">will be doing</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">will have done</div></td></tr></tbody></table><table class="notion-simple-table notion-block-1bed37c21fbb803b9239f428db5455da"><tbody><tr class="notion-simple-table-row notion-simple-table-header-row notion-block-1bed37c21fbb807881a0faed10a75693"><td class="" style="width:120px"><div class="notion-simple-table-cell">被动</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">一般</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">进行</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">完成</div></td></tr><tr class="notion-simple-table-row notion-block-1bed37c21fbb801d9683cc5683b95c07"><td class="" style="width:120px"><div class="notion-simple-table-cell">过去</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">was/were done</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">was/were being done</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">had been done</div></td></tr><tr class="notion-simple-table-row notion-block-1bed37c21fbb80c2bf42dc9c7a8ccafa"><td class="" style="width:120px"><div class="notion-simple-table-cell">现在</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">am/is/are done</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">am/is/are being done</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">have/has been done</div></td></tr><tr class="notion-simple-table-row notion-block-1bed37c21fbb80a7957bfae9eef0db40"><td class="" style="width:120px"><div class="notion-simple-table-cell">将来</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">will be done</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">will be being done</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">will have been done</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1bed37c21fbb806bbb31ea6dc802b1df" data-id="1bed37c21fbb806bbb31ea6dc802b1df"><span><div id="1bed37c21fbb806bbb31ea6dc802b1df" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb806bbb31ea6dc802b1df" title="非谓语"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">非谓语</span></span></h4><blockquote class="notion-quote notion-block-1bed37c21fbb8061bffac27947067d6e"><div>和动作有关，但不是谓语</div></blockquote><table class="notion-simple-table notion-block-1bed37c21fbb8059b3aefb9164d1a363"><tbody><tr class="notion-simple-table-row notion-simple-table-header-row notion-block-1bed37c21fbb807aba30febc6a92349c"><td class="" style="width:120px"><div class="notion-simple-table-cell">非谓语动词类型</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">句内成分</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">性质</div></td></tr><tr class="notion-simple-table-row notion-block-1bed37c21fbb80529315e4d04df4aa61"><td class="" style="width:120px"><div class="notion-simple-table-cell">动词不定式</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">可做除谓语外所有成分</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">n./a./ad.</div></td></tr><tr class="notion-simple-table-row notion-block-1bed37c21fbb809a912af0c756b3ee40"><td class="" style="width:120px"><div class="notion-simple-table-cell">动名词</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">主语、宾语、表语、同位语（名词性成分）</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">n.</div></td></tr><tr class="notion-simple-table-row notion-block-1bed37c21fbb804bb8cef4de8541defa"><td class="" style="width:120px"><div class="notion-simple-table-cell">分词</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">定语、状语、表语、补语（形容词、副词）</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">a./ad.</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1bed37c21fbb8029a425f8dbfc376932" data-id="1bed37c21fbb8029a425f8dbfc376932"><span><div id="1bed37c21fbb8029a425f8dbfc376932" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb8029a425f8dbfc376932" title="动词不定式"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">动词不定式</span></span></h4><ol start="1" class="notion-list notion-list-numbered notion-block-1bed37c21fbb803a9f7fd701a7a6731a" style="list-style-type:decimal"><li>做主语：<span class="notion-inline-underscore">To think of you</span> makes me happy.</li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-1bed37c21fbb80f0b9cbc175df0092ff" style="list-style-type:decimal"><li>做宾语：I can&#x27;t bear <span class="notion-inline-underscore">to look back</span>.</li></ol><ol start="3" class="notion-list notion-list-numbered notion-block-1bed37c21fbb80248715e56664224d81" style="list-style-type:decimal"><li>做表语：My task is <span class="notion-inline-underscore">to finsh</span> this game.</li></ol><ol start="4" class="notion-list notion-list-numbered notion-block-1bed37c21fbb80e4a402e17d5f30cfd9" style="list-style-type:decimal"><li>做宾语补足语：I prefer him <span class="notion-inline-underscore">to come</span>.</li></ol><ol start="5" class="notion-list notion-list-numbered notion-block-1bed37c21fbb80b68e2dda0c64697c64" style="list-style-type:decimal"><li>做定语：She founf a dresss <span class="notion-inline-underscore">to wear</span>.</li></ol><ol start="6" class="notion-list notion-list-numbered notion-block-1bed37c21fbb80fc9f74df66c07dfa92" style="list-style-type:decimal"><li>做状语：We live <span class="notion-inline-underscore">to love</span>.</li></ol><ol start="7" class="notion-list notion-list-numbered notion-block-1bed37c21fbb80a2a0fccf9b6b4acb61" style="list-style-type:decimal"><li>做同位语：I have a plan <span class="notion-inline-underscore">to go to China</span>.</li></ol><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1bed37c21fbb80fbaea5c67a91fe50a8" data-id="1bed37c21fbb80fbaea5c67a91fe50a8"><span><div id="1bed37c21fbb80fbaea5c67a91fe50a8" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb80fbaea5c67a91fe50a8" title="动名词"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">动名词</span></span></h4><blockquote class="notion-quote notion-block-1bed37c21fbb804f9ebdd40148d36fee"><div>单个动作的事件化。本质还是n.</div></blockquote><div class="notion-text notion-block-1bed37c21fbb80afa8e2de41d6a1c322">a.与普通名词相比，动名词强调动作性。</div><div class="notion-text notion-block-1bed37c21fbb8006af33d58c9eb21adb">b.与动词不定式相比，强调客观存在的事件性。</div><ol start="1" class="notion-list notion-list-numbered notion-block-1bed37c21fbb805dbccbc33bd4090ab4" style="list-style-type:decimal"><li>做主语：&lt;u&gt;Saying &lt;/u&gt;is easier than doing.</li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-1bed37c21fbb80ff93c8d85e57d93eea" style="list-style-type:decimal"><li>做宾语：They confessed &lt;u&gt;loving each other&lt;/u&gt;.</li></ol><ol start="3" class="notion-list notion-list-numbered notion-block-1bed37c21fbb80ba8ff3c84135f72d6a" style="list-style-type:decimal"><li>做宾语补足语：We call the sport &lt;u&gt;running&lt;/u&gt;.</li></ol><ol start="4" class="notion-list notion-list-numbered notion-block-1bed37c21fbb80568c81f34fd319c338" style="list-style-type:decimal"><li>做表语：The beast way is &lt;u&gt;being real&lt;/u&gt;.</li></ol><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1bed37c21fbb805099ddfbde3e72e1af" data-id="1bed37c21fbb805099ddfbde3e72e1af"><span><div id="1bed37c21fbb805099ddfbde3e72e1af" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb805099ddfbde3e72e1af" title="分词"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">分词</span></span></h4><blockquote class="notion-quote notion-block-1bed37c21fbb807e80f5d1a13511175c"><div>区分正常单词的词。</div><div class="notion-text notion-block-1bed37c21fbb809d8469c5cd74d4a7d3">现在分词：-ing，表主动。</div><div class="notion-text notion-block-1bed37c21fbb80e392fbc150142620ec">过去分词：-ed，表被动。</div></blockquote><ol start="1" class="notion-list notion-list-numbered notion-block-1bed37c21fbb809f8703c2cd80a43115" style="list-style-type:decimal"><li>做定语：分词结构在句中作定语时，分词的动作由它所修饰的名词主动/被动传达出来。</li></ol><div class="notion-text notion-block-1bed37c21fbb80b58bdde6071233b657">I&#x27;m studying the materials showing the economic trend.</div><ol start="1" class="notion-list notion-list-numbered notion-block-1bed37c21fbb80698fdbc0ad55e15c9d" style="list-style-type:decimal"><li>做状语：分词结果在句中作状语时，分词的动作由句子中的主语主动/被动传达出来。</li></ol><div class="notion-text notion-block-1bed37c21fbb80a4a5a9da0d41e72880">Looking at him, I  think of myself in the old days.</div><ol start="1" class="notion-list notion-list-numbered notion-block-1bed37c21fbb80a48ea9cd18996c180c" style="list-style-type:decimal"><li>补充</li></ol><ul class="notion-list notion-list-disc notion-block-1bed37c21fbb806cb350ca73153d0fa3"><li>做表语</li></ul><div class="notion-text notion-block-1bed37c21fbb80f390b2e8cbb0c2181c">He is married.</div><ul class="notion-list notion-list-disc notion-block-1bed37c21fbb803588c5c818f7b201af"><li>做补语</li></ul><div class="notion-text notion-block-1bed37c21fbb809fbd37f2f6c108c0ae">I&#x27;ll get my car repaired.</div><ul class="notion-list notion-list-disc notion-block-1bed37c21fbb8071a0a8f17d5491c2b1"><li>分词经常单独作形容词</li></ul><div class="notion-text notion-block-1bed37c21fbb807db859cd6058c529b5">A barking dog doesn&#x27;t bite.</div><div class="notion-text notion-block-1bed37c21fbb80279577e0cfde4b70be">Clean water is safe to drink.</div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1bed37c21fbb80d3a096de32ccecdc86" data-id="1bed37c21fbb80d3a096de32ccecdc86"><span><div id="1bed37c21fbb80d3a096de32ccecdc86" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb80d3a096de32ccecdc86" title="短语和词组"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">短语和词组</span></span></h2><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1bed37c21fbb8083af68c72a25cfb2ba"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A1b6802a6-7aaa-4bd8-b622-55fe67376ddb%3Aimage.png?table=block&amp;id=1bed37c2-1fbb-8083-af68-c72a25cfb2ba&amp;t=1bed37c2-1fbb-8083-af68-c72a25cfb2ba" alt="notion image" loading="lazy" decoding="async"/></div></figure><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1bed37c21fbb80609f9dc19dfa00b1da" data-id="1bed37c21fbb80609f9dc19dfa00b1da"><span><div id="1bed37c21fbb80609f9dc19dfa00b1da" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb80609f9dc19dfa00b1da" title="名词性短语"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">名词性短语</span></span></h3><div class="notion-text notion-block-1bed37c21fbb804fad34c910b359de6d">名词：可数名词、不可数名词、具象名词、抽象名词</div><div class="notion-text notion-block-1bed37c21fbb8064b426f81fdde18e87">限定词：</div><ol start="1" class="notion-list notion-list-numbered notion-block-1bed37c21fbb80919804e66627ebfaf8" style="list-style-type:decimal"><li>数词：one/two/first/second</li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-1bed37c21fbb80468c66d631999a7a77" style="list-style-type:decimal"><li>代词：this/that/these/those</li></ol><ol start="3" class="notion-list notion-list-numbered notion-block-1bed37c21fbb8076a13ee41c83d9206b" style="list-style-type:decimal"><li>冠词：the/a/an/无</li></ol><div class="notion-text notion-block-1bed37c21fbb802c990bd04ea27dcd8e">前置定语：</div><ol start="1" class="notion-list notion-list-numbered notion-block-1bed37c21fbb802895a4f3a583d11a8f" style="list-style-type:decimal"><li>形容词或多个形容词并列</li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-1bed37c21fbb8088b695f22f15c8c75a" style="list-style-type:decimal"><li>名词所有格：...的（所有）。 A&#x27;B（A一般为人、距离）</li></ol><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1bed37c21fbb80e08e56d90eb2e2d821" data-id="1bed37c21fbb80e08e56d90eb2e2d821"><span><div id="1bed37c21fbb80e08e56d90eb2e2d821" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb80e08e56d90eb2e2d821" title="形容词性短语"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">形容词性短语</span></span></h3><ol start="1" class="notion-list notion-list-numbered notion-block-1bed37c21fbb80c5b985fc438d4a6ad0" style="list-style-type:decimal"><li>多个形容词并列：black or white， young and old</li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-1bed37c21fbb8050b66ae8e7062fcd7a" style="list-style-type:decimal"><li>名词所有格：A&#x27;s B // B of A</li></ol><div class="notion-text notion-block-1bed37c21fbb80c798d8d643894faab6">Tim&#x27;s bag.</div><div class="notion-text notion-block-1bed37c21fbb8075bb95fde081f6efe9">Door of the house.</div><ol start="1" class="notion-list notion-list-numbered notion-block-1bed37c21fbb8053b71edf845b21815c" style="list-style-type:decimal"><li>介词短语：prep. + 名词性短语</li></ol><div class="notion-text notion-block-1bed37c21fbb8042ba1cd00c062e5c65">[A的]B-&gt;B of A（A非人）</div><div class="notion-text notion-block-1bed37c21fbb80ab974fc448021680d6">Outlook on value.</div><ol start="1" class="notion-list notion-list-numbered notion-block-1bed37c21fbb8068beedfd87efb361b1" style="list-style-type:decimal"><li>复合型形容词短语：a.+a.=a.</li></ol><div class="notion-text notion-block-1bed37c21fbb803cb784f63a6cbc653a">The mistake of the beginners of English.</div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1bed37c21fbb80d0af1bd7239652e095" data-id="1bed37c21fbb80d0af1bd7239652e095"><span><div id="1bed37c21fbb80d0af1bd7239652e095" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb80d0af1bd7239652e095" title="副词性短语"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">副词性短语</span></span></h3><blockquote class="notion-quote notion-block-1bed37c21fbb80eb959bf854c64b6a2b"><div>主要作状语：ad.+ad.</div></blockquote><ol start="1" class="notion-list notion-list-numbered notion-block-1bed37c21fbb801ea8cbcc636558886f" style="list-style-type:decimal"><li>多个副词并列</li></ol><div class="notion-text notion-block-1bed37c21fbb80ceac5df88057f88416">again and again, quickly and correctly</div><ol start="1" class="notion-list notion-list-numbered notion-block-1bed37c21fbb80f2af33c9a6a7e24b0c" style="list-style-type:decimal"><li>介词短语：prep.+名词性短语</li></ol><div class="notion-text notion-block-1bed37c21fbb80a49608e962b882dbc5">In the contemporary society,...</div><ol start="1" class="notion-list notion-list-numbered notion-block-1bed37c21fbb80059070d4f2ec83cb8a" style="list-style-type:decimal"><li>复合副词短语：ad.+ad.=ad.</li></ol><div class="notion-text notion-block-1bed37c21fbb80a083f7f68a4ea65965">He speaks English slowly to his students.</div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1bed37c21fbb80cc9a2efc1bba12735b" data-id="1bed37c21fbb80cc9a2efc1bba12735b"><span><div id="1bed37c21fbb80cc9a2efc1bba12735b" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb80cc9a2efc1bba12735b" title="复杂句"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">复杂句</span></span></h2><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1bed37c21fbb800d8173c87108dc426c"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ad312441e-8c4c-4612-800f-04d3625c18b9%3Aimage.png?table=block&amp;id=1bed37c2-1fbb-800d-8173-c87108dc426c&amp;t=1bed37c2-1fbb-800d-8173-c87108dc426c" alt="notion image" loading="lazy" decoding="async"/></div></figure><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1bed37c21fbb807b80a0d9612644d0f2" data-id="1bed37c21fbb807b80a0d9612644d0f2"><span><div id="1bed37c21fbb807b80a0d9612644d0f2" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb807b80a0d9612644d0f2" title="名词性从句"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">名词性从句</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1bed37c21fbb80beb858e91a5536a63e"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ac05bfae6-3515-4a4d-b876-da7c3d9da393%3Aimage.png?table=block&amp;id=1bed37c2-1fbb-80be-b858-e91a5536a63e&amp;t=1bed37c2-1fbb-80be-b858-e91a5536a63e" alt="notion image" loading="lazy" decoding="async"/></div></figure><blockquote class="notion-quote notion-block-1bed37c21fbb80d589d4ef56094ddfdd"><div>本质：在句中的名词性成分中放一个句子</div></blockquote><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1bed37c21fbb804bb036da9991a37e89" data-id="1bed37c21fbb804bb036da9991a37e89"><span><div id="1bed37c21fbb804bb036da9991a37e89" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb804bb036da9991a37e89" title="总结"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">总结</span></span></h4><table class="notion-simple-table notion-block-1bed37c21fbb80448471f5e6601a0e51"><tbody><tr class="notion-simple-table-row notion-block-1bed37c21fbb80fcb6ebe0e72bfdb066"><td class="" style="width:120px"><div class="notion-simple-table-cell">从句</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">引导词</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">引导词是否做从句成分</div></td></tr><tr class="notion-simple-table-row notion-block-1bed37c21fbb805eb232d784ee5f2504"><td class="" style="width:120px"><div class="notion-simple-table-cell">陈述句</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">that</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">否</div></td></tr><tr class="notion-simple-table-row notion-block-1bed37c21fbb80cc93b5d9011854f74c"><td class="" style="width:120px"><div class="notion-simple-table-cell">一般疑问句</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">whether/if</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">否</div></td></tr><tr class="notion-simple-table-row notion-block-1bed37c21fbb808da4efda2c9652b093"><td class="" style="width:120px"><div class="notion-simple-table-cell">特殊疑问句</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">1. 连接代词：what/who/whom&lt;br/&gt;2. 连接副词：where/when/why/how&lt;br/&gt;3. 连接形容词：which/whose</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">1. 做主语/宾语/表语&lt;br/&gt;2. 做状语&lt;br/&gt;3. 作定语</div></td></tr></tbody></table><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1bed37c21fbb803b96c1e4b17317f56a" data-id="1bed37c21fbb803b96c1e4b17317f56a"><span><div id="1bed37c21fbb803b96c1e4b17317f56a" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb803b96c1e4b17317f56a" title="状语从句"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">状语从句</span></span></h3><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1bed37c21fbb8095b709f358899247ee" data-id="1bed37c21fbb8095b709f358899247ee"><span><div id="1bed37c21fbb8095b709f358899247ee" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb8095b709f358899247ee" title="时间"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">时间</span></span></h4><blockquote class="notion-quote notion-block-1bed37c21fbb804ba490f2edf607c843"><div>when/as/while/before/after/till/until/since</div></blockquote><ol start="1" class="notion-list notion-list-numbered notion-block-1bed37c21fbb80a1a12fd10f2c2b78b3" style="list-style-type:decimal"><li>when、as、while</li></ol><ul class="notion-list notion-list-disc notion-block-1bed37c21fbb800ca891fb46319751ab"><li>when泛指时间---当...时候</li></ul><div class="notion-text notion-block-1bed37c21fbb8017bae0e9e447453c79">When the train came, I pushed him off the station.</div><ul class="notion-list notion-list-disc notion-block-1bed37c21fbb802f834ec629eb8d9680"><li>as强调伴随性---随着...</li></ul><div class="notion-text notion-block-1bed37c21fbb8060b926c91fcc2bcb1f">As the train came,I pushed him off the station.</div><ul class="notion-list notion-list-disc notion-block-1bed37c21fbb802281adce008f4410cd"><li>while指一段时间---在这段时间内</li></ul><div class="notion-text notion-block-1bed37c21fbb808e8da9f77637eebe23">While the train was coming, I pushed him off the station.</div><ol start="1" class="notion-list notion-list-numbered notion-block-1bed37c21fbb8030a956ddc53ab1bd43" style="list-style-type:decimal"><li>before、after</li></ol><ul class="notion-list notion-list-disc notion-block-1bed37c21fbb80398db3dcfe3eed29a8"><li>I&#x27;d like to drink a cup of water before we leave.</li></ul><ul class="notion-list notion-list-disc notion-block-1bed37c21fbb8081bdcfe61d7b2bc4df"><li>I&#x27;d like to drink a cup of water after I work out in the gym.</li></ul><ol start="1" class="notion-list notion-list-numbered notion-block-1bed37c21fbb808180f7fa6b814ee9df" style="list-style-type:decimal"><li>till、until</li></ol><ul class="notion-list notion-list-disc notion-block-1bed37c21fbb8069a485f4227207e22e"><li>till和until都表示“直到...时候”，本质无差别，till是until的缩略形式，多用在口语</li></ul><ul class="notion-list notion-list-disc notion-block-1bed37c21fbb80edae3ffe486c4a3a73"><li>注意till/until肯定和否定的表达</li></ul><ol start="1" class="notion-list notion-list-numbered notion-block-1bed37c21fbb8011914ae823ae926b95" style="list-style-type:decimal"><li>since 自从...</li></ol><div class="notion-text notion-block-1bed37c21fbb80d3a15cf8646dc18da9">This building has been constructed since I was born.</div><ol start="1" class="notion-list notion-list-numbered notion-block-1bed37c21fbb80039f5ec326636b5f41" style="list-style-type:decimal"><li>特殊引导词</li></ol><div class="notion-text notion-block-1bed37c21fbb8033a877f51c52b73f7c">the minute、the moment、the second、every time、the day、as soon as...</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1bed37c21fbb808e9df0eaeb6a699fb1" data-id="1bed37c21fbb808e9df0eaeb6a699fb1"><span><div id="1bed37c21fbb808e9df0eaeb6a699fb1" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb808e9df0eaeb6a699fb1" title="地点"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">地点</span></span></h4><ol start="1" class="notion-list notion-list-numbered notion-block-1bed37c21fbb80ec9096f72a235fd2f3" style="list-style-type:decimal"><li>where</li></ol><div class="notion-text notion-block-1bed37c21fbb80869a12ee872fa7d742">Where you finding rubbish, I find gold.</div><ol start="1" class="notion-list notion-list-numbered notion-block-1bed37c21fbb80d78c10eb700bbc112c" style="list-style-type:decimal"><li>特殊引导词：wherever、anywhere、everywhere</li></ol><div class="notion-text notion-block-1bed37c21fbb8079819ed3f80146c700">Wherever you go, I will follow.</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1bed37c21fbb80a9aef1ef59ad3b9390" data-id="1bed37c21fbb80a9aef1ef59ad3b9390"><span><div id="1bed37c21fbb80a9aef1ef59ad3b9390" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb80a9aef1ef59ad3b9390" title="原因（伴随）"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">原因（伴随）</span></span></h4><ol start="1" class="notion-list notion-list-numbered notion-block-1bed37c21fbb807e8f80f1f065b5f008" style="list-style-type:decimal"><li>because、since、as、for</li></ol><div class="notion-text notion-block-1bed37c21fbb80778ca8ec7a390f009b">I feel happy beacuse the water is so good.</div><div class="notion-text notion-block-1bed37c21fbb8039ba95e1180d5612fc">I have many responsibilites since I am a teacher.</div><div class="notion-text notion-block-1bed37c21fbb801d8b4ff4d562530f6f">I go back home as the shop is closed.</div><div class="notion-text notion-block-1bed37c21fbb80fda3afd9be856da86d">I cired out for I saw this world again.</div><ol start="1" class="notion-list notion-list-numbered notion-block-1bed37c21fbb8091b8f6daa86497effb" style="list-style-type:decimal"><li>now that、in that、considering that、given that</li></ol><div class="notion-text notion-block-1bed37c21fbb80268df6e820a0997b42">We have to fight in that our planet is facing a disaster.</div><div class="notion-text notion-block-1bed37c21fbb8058a2bfe09aed9026e0">Considering that our planet is facing a disaster we have to fight.</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1bed37c21fbb80709bf1f3e5b14f17ec" data-id="1bed37c21fbb80709bf1f3e5b14f17ec"><span><div id="1bed37c21fbb80709bf1f3e5b14f17ec" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb80709bf1f3e5b14f17ec" title="结果"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">结果</span></span></h4><ol start="1" class="notion-list notion-list-numbered notion-block-1bed37c21fbb80cbb681dba6850cf87c" style="list-style-type:decimal"><li>so...that：后跟形容词或副词---是如此...以至于...</li></ol><div class="notion-text notion-block-1bed37c21fbb8073bb64f8f1836737a3">She reacts so quickly that no one can catch her.</div><ol start="1" class="notion-list notion-list-numbered notion-block-1bed37c21fbb80b9adf5c0d4632d94af" style="list-style-type:decimal"><li>such...that：后跟名词---是如此一个...以至于...</li></ol><div class="notion-text notion-block-1bed37c21fbb80fca57ee39b0e6b4c1f">He is such a bastard that everybody hates him.</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1bed37c21fbb809ebfefe57284b714b8" data-id="1bed37c21fbb809ebfefe57284b714b8"><span><div id="1bed37c21fbb809ebfefe57284b714b8" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb809ebfefe57284b714b8" title="目的"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">目的</span></span></h4><div class="notion-text notion-block-1bed37c21fbb80ab8a29d0666664da28">so that、in order that</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1bed37c21fbb80aa8355f0c9d64d7b24" data-id="1bed37c21fbb80aa8355f0c9d64d7b24"><span><div id="1bed37c21fbb80aa8355f0c9d64d7b24" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb80aa8355f0c9d64d7b24" title="条件"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">条件</span></span></h4><ol start="1" class="notion-list notion-list-numbered notion-block-1bed37c21fbb80b7bdb5ffe069d16bfa" style="list-style-type:decimal"><li>if、unless</li></ol><div class="notion-text notion-block-1bed37c21fbb80c1acabebef6e8a229b">和虚拟语气的区别：虚拟语气是不可实现的，条件是可以实现的</div><div class="notion-text notion-block-1bed37c21fbb8087a463da1729df2a33">If you ask Tom, he &lt;u&gt;will &lt;/u&gt;give it to you. 更笃定</div><div class="notion-text notion-block-1bed37c21fbb80a09e49c44ab085c8a7">If you ask Tom, he &lt;u&gt;would &lt;/u&gt;give it to you. 摇摆不定</div><div class="notion-text notion-block-1bed37c21fbb8070942acbc411747913">You will be late unless you start earlier.</div><ol start="1" class="notion-list notion-list-numbered notion-block-1bed37c21fbb80fd8d87eee3f712aecf" style="list-style-type:decimal"><li>特殊引导词：as、only if、providing that、supposing that、in case that</li></ol><div class="notion-text notion-block-1bed37c21fbb80509543e39dcc789b4a">As the price of gold reached the lowest point in history, Chinese dama bought huge amounts of gold in 2014.</div><div class="notion-text notion-block-1bed37c21fbb803787d0f2ca0533a50e">Only if you can fly, you can have the entire view.</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1bed37c21fbb80e1acc7cebf3fa46d6d" data-id="1bed37c21fbb80e1acc7cebf3fa46d6d"><span><div id="1bed37c21fbb80e1acc7cebf3fa46d6d" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb80e1acc7cebf3fa46d6d" title="让步"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">让步</span></span></h4><ol start="1" class="notion-list notion-list-numbered notion-block-1bed37c21fbb809ba8cfd864eaa8d122" style="list-style-type:decimal"><li>though：尽管---多放在居中</li></ol><div class="notion-text notion-block-1bed37c21fbb800e8932f48fcf7bc50b">although：尽管---多放在句首</div><div class="notion-text notion-block-1bed37c21fbb80509027f284961c9067">Although he rejected you once, you need to ask home again.</div><div class="notion-text notion-block-1bed37c21fbb80579ff6faba7e8953d1">You need to ask him again though he rejected you once.</div><div class="notion-text notion-block-1bed37c21fbb802d91d0c4023bcf99b3">even though：尽管---多放在句首</div><div class="notion-text notion-block-1bed37c21fbb808a8437d74fc3146897">even if：尽管---多放在句首</div><ol start="1" class="notion-list notion-list-numbered notion-block-1bed37c21fbb80938651ec528bc2abc5" style="list-style-type:decimal"><li>no matter、whatever、whoever、wherever、whenever、however</li></ol><div class="notion-text notion-block-1bed37c21fbb803f97fbc6290d643479">It would be a disaster no matter who did it.</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1bed37c21fbb8096bb1dcd2131422279" data-id="1bed37c21fbb8096bb1dcd2131422279"><span><div id="1bed37c21fbb8096bb1dcd2131422279" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb8096bb1dcd2131422279" title="比较"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">比较</span></span></h4><ol start="1" class="notion-list notion-list-numbered notion-block-1bed37c21fbb801ea049e82fc7fd4a2b" style="list-style-type:decimal"><li>as：像...一样</li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-1bed37c21fbb804284eaceebce9f345d" style="list-style-type:decimal"><li>that：比...</li></ol><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1bed37c21fbb800aa010f1534c167812" data-id="1bed37c21fbb800aa010f1534c167812"><span><div id="1bed37c21fbb800aa010f1534c167812" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb800aa010f1534c167812" title="方式"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">方式</span></span></h4><ol start="1" class="notion-list notion-list-numbered notion-block-1bed37c21fbb808bbb4cc9d87af4cc84" style="list-style-type:decimal"><li>as</li></ol><div class="notion-text notion-block-1bed37c21fbb801aa90ad6d0eba2301b">You need to play guiter as I do.</div><ol start="1" class="notion-list notion-list-numbered notion-block-1bed37c21fbb80eea02efa4a18cbaa64" style="list-style-type:decimal"><li>as if、as though：就好像（口语中常用 like）</li></ol><div class="notion-text notion-block-1bed37c21fbb801e890edc9798d66440">She looks as if she know everything.</div><ol start="1" class="notion-list notion-list-numbered notion-block-1bed37c21fbb8028a823f92818d2b4b2" style="list-style-type:decimal"><li>as the way：按...方式...</li></ol><div class="notion-text notion-block-1bed37c21fbb80379cc9e48923f08830">I&#x27;ll never do it as the way you do it.</div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1bed37c21fbb80b1bea7df4e71c7898c" data-id="1bed37c21fbb80b1bea7df4e71c7898c"><span><div id="1bed37c21fbb80b1bea7df4e71c7898c" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb80b1bea7df4e71c7898c" title="定语从句"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">定语从句</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1bed37c21fbb8021bbf3dd7ffdab9afa"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aac45898f-9b6a-4edf-a9c6-ed86bdce09f7%3Aimage.png?table=block&amp;id=1bed37c2-1fbb-8021-bbf3-dd7ffdab9afa&amp;t=1bed37c2-1fbb-8021-bbf3-dd7ffdab9afa" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1bed37c21fbb800489d0e233f95df179" data-id="1bed37c21fbb800489d0e233f95df179"><span><div id="1bed37c21fbb800489d0e233f95df179" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb800489d0e233f95df179" title="被修饰词与定语从句的排列"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">被修饰词与定语从句的排列</span></span></h4><ol start="1" class="notion-list notion-list-numbered notion-block-1bed37c21fbb8094995efcdedb53d73f" style="list-style-type:decimal"><li>先行词与定语之间插入定语</li></ol><div class="notion-text notion-block-1bed37c21fbb80649157e8bfbe032ccc">There are many thousands of **stars **in the  sky &lt;u&gt;that &lt;/u&gt;are like the sun.</div><ol start="1" class="notion-list notion-list-numbered notion-block-1bed37c21fbb804eb8d0f8fd64fdd1db" style="list-style-type:decimal"><li>先行词与定语之间插入状语</li></ol><div class="notion-text notion-block-1bed37c21fbb80bf9de7efecaa8d9d13">Do you remember on **afternon **ten years ago &lt;u&gt;when &lt;/u&gt;I came to your house and borrowed necklace?</div><ol start="1" class="notion-list notion-list-numbered notion-block-1bed37c21fbb80e8a2e2e06bdbf6bb10" style="list-style-type:decimal"><li>先行词与定语之间插入谓语</li></ol><div class="notion-text notion-block-1bed37c21fbb80119d31ce6ec1c9d126">A new **master **will come tomorrow &lt;u&gt;who &lt;/u&gt;will teach you German.</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1bed37c21fbb8070abecf8116b94ad58" data-id="1bed37c21fbb8070abecf8116b94ad58"><span><div id="1bed37c21fbb8070abecf8116b94ad58" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb8070abecf8116b94ad58" title="关系词（从句引导词）"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">关系词（从句引导词）</span></span></h4><div class="notion-text notion-block-1bed37c21fbb802c99f9d61f57411836">与被修饰词有指代关系的词（在从句中代指被修饰词）</div><ol start="1" class="notion-list notion-list-numbered notion-block-1bed37c21fbb80108aaaf2a44110b970" style="list-style-type:decimal"><li>指代表意</li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-1bed37c21fbb80dab217f88cb7c5c866" style="list-style-type:decimal"><li>连接主句从句（从句引导词）</li></ol><ol start="3" class="notion-list notion-list-numbered notion-block-1bed37c21fbb80949fd0efb046203a53" style="list-style-type:decimal"><li>做从句成分</li></ol><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1bed37c21fbb80d98a5cd33b6dd97d53" data-id="1bed37c21fbb80d98a5cd33b6dd97d53"><span><div id="1bed37c21fbb80d98a5cd33b6dd97d53" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb80d98a5cd33b6dd97d53" title="定语从句引导词（关系词）的选择"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">定语从句引导词（关系词）的选择</span></span></h4><ol start="1" class="notion-list notion-list-numbered notion-block-1bed37c21fbb8073b42ce24561810b3c" style="list-style-type:decimal"><li>看被修饰词（n.）内容：人、物、事</li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-1bed37c21fbb80c7b905c28e26a48633" style="list-style-type:decimal"><li>看其在从句中的位置：主语、宾语、状语</li></ol><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1bed37c21fbb804ca232cdaab2599aad" data-id="1bed37c21fbb804ca232cdaab2599aad"><span><div id="1bed37c21fbb804ca232cdaab2599aad" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb804ca232cdaab2599aad" title="人"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">人</span></span></h4><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1bed37c21fbb80cc9eeecd1f6dbf6060" data-id="1bed37c21fbb80cc9eeecd1f6dbf6060"><span><div id="1bed37c21fbb80cc9eeecd1f6dbf6060" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb80cc9eeecd1f6dbf6060" title="总结"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">总结</span></span></h4><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1bed37c21fbb80b78b14ed99a0bd6c52"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A04507c6f-a36c-486c-8295-e0a468d6ce0f%3Aimage.png?table=block&amp;id=1bed37c2-1fbb-80b7-8b14-ed99a0bd6c52&amp;t=1bed37c2-1fbb-80b7-8b14-ed99a0bd6c52" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1bed37c21fbb80e68a90ec65c334db4f" data-id="1bed37c21fbb80e68a90ec65c334db4f"><span><div id="1bed37c21fbb80e68a90ec65c334db4f" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb80e68a90ec65c334db4f" title="物&amp;事"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">物&amp;事</span></span></h4><div class="notion-text notion-block-1bed37c21fbb803e8e25c75ec10362b4"><b>that和which辨析</b>：</div><ol start="1" class="notion-list notion-list-numbered notion-block-1bed37c21fbb800c8fbfe6def0636d17" style="list-style-type:decimal"><li>先行词是人+物：关系词只能用that。因为that既可以指人又可以指物</li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-1bed37c21fbb8007ad5fe663fe822685" style="list-style-type:decimal"><li>all、little、few、much、none、the first做先行词只能用that。因为以上代词既可以指人又可以指物</li></ol><ol start="3" class="notion-list notion-list-numbered notion-block-1bed37c21fbb80d383f4fc7b6595156d" style="list-style-type:decimal"><li>any、only、all、every、no、some、much、few、little、序数词、最高级只能用that。因为以上代词既可以指人又可以指物</li></ol><ol start="4" class="notion-list notion-list-numbered notion-block-1bed37c21fbb800f952ec0fa6254981d" style="list-style-type:decimal"><li>当紧邻关系词含有介词时，只能用which</li></ol><ul class="notion-list notion-list-disc notion-block-1bed37c21fbb8095bc67c756e38d5bdf"><li>从句谓语动词与介词搭配的习惯</li></ul><div class="notion-text notion-block-1bed37c21fbb806882ced716894c4adb">Water is the natural medium in which fish live.</div><div class="notion-text notion-block-1bed37c21fbb802f81b3f6ec2a6195df">The documents for which they were seraching have been recovered.</div><ul class="notion-list notion-list-disc notion-block-1bed37c21fbb80eaa974d4eba0124708"><li>从句形容词与介词搭配</li></ul><div class="notion-text notion-block-1bed37c21fbb80e1a018c3402b9ab820">He referred me to some reference books with which I am not very familiar.</div><ul class="notion-list notion-list-disc notion-block-1bed37c21fbb80129976d2f82844296b"><li>从句引导词作为前文短语搭配的一部分</li></ul><div class="notion-text notion-block-1bed37c21fbb80658e9dccd3789cd54d">This is our classroom, in the front of which there is a teacher&#x27;s desk.</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1bed37c21fbb8080b7f4fdab9f6cb3e3" data-id="1bed37c21fbb8080b7f4fdab9f6cb3e3"><span><div id="1bed37c21fbb8080b7f4fdab9f6cb3e3" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb8080b7f4fdab9f6cb3e3" title="总结"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">总结</span></span></h4><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1bed37c21fbb8065a784e3851e5bde15"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A91f0d1e8-3107-4a25-bdd6-75198676d806%3Aimage.png?table=block&amp;id=1bed37c2-1fbb-8065-a784-e3851e5bde15&amp;t=1bed37c2-1fbb-8065-a784-e3851e5bde15" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1bed37c21fbb8072a67ac8ac7bca3168" data-id="1bed37c21fbb8072a67ac8ac7bca3168"><span><div id="1bed37c21fbb8072a67ac8ac7bca3168" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb8072a67ac8ac7bca3168" title="看被修饰词（先行词）的内容"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">看被修饰词（先行词）的内容</span></span></h4><div class="notion-text notion-block-1bed37c21fbb80ae9b3de545a33e5755">关系副词：代指先行词为时间、地点、原因，在从句中作状语的关系词</div><ol start="1" class="notion-list notion-list-numbered notion-block-1bed37c21fbb803585eafbcd7c5bc64b" style="list-style-type:decimal"><li>时间</li></ol><div class="notion-text notion-block-1bed37c21fbb80c3a0e8d8118bc0bc97">I will neber forget <b>the day</b> &lt;u&gt;when&lt;/u&gt; we first met in the hotel.</div><ol start="1" class="notion-list notion-list-numbered notion-block-1bed37c21fbb80f4a222eb1208af5c0b" style="list-style-type:decimal"><li>地点</li></ol><div class="notion-text notion-block-1bed37c21fbb806fa9efe02c52ddc198">This is <b>the hotel</b> &lt;u&gt;where &lt;/u&gt;I spent a wonderful time with you.</div><ol start="1" class="notion-list notion-list-numbered notion-block-1bed37c21fbb80e08407c65cb4bf1118" style="list-style-type:decimal"><li>原因</li></ol><div class="notion-text notion-block-1bed37c21fbb8042b111fa4144a68fe2">This is <b>the reason</b> &lt;u&gt;why &lt;/u&gt;I didn&#x27;t come here.</div><div class="notion-text notion-block-1bed37c21fbb80b3ba5ad469d5e56d8a"><b>如何区分关系副词引导的定语从句和状语从句？</b></div><div class="notion-text notion-block-1bed37c21fbb80499699e88f1f70c543">定语从句的关系副词前一定有其指代的时间、地点、原因的先行词。</div><div class="notion-text notion-block-1bed37c21fbb8092a969ee8f7b103f7d"><b>关系副词（when、where、why）=介词+which</b></div><ol start="1" class="notion-list notion-list-numbered notion-block-1bed37c21fbb8006b9bee2be7e3dec6f" style="list-style-type:decimal"><li>When will you come back?</li></ol><div class="notion-text notion-block-1bed37c21fbb808486bdf7ad9d190464">I will come back on Monday.</div><ul class="notion-list notion-list-disc notion-block-1bed37c21fbb8003b147c00e918bee3b"><li>--when=on Monday(which=Mondy)</li></ul><ol start="1" class="notion-list notion-list-numbered notion-block-1bed37c21fbb8024a649d861f1ec9fca" style="list-style-type:decimal"><li>Where were you last night?</li></ol><div class="notion-text notion-block-1bed37c21fbb804ca246d86610d7d3d7">I was at the bar last night.</div><ul class="notion-list notion-list-disc notion-block-1bed37c21fbb80e1acdfcfa101f8fe84"><li>--Where=at the bar(which=the bar)</li></ul><ol start="1" class="notion-list notion-list-numbered notion-block-1bed37c21fbb8084a084f9415fc5acf5" style="list-style-type:decimal"><li>Why do you leave the country?</li></ol><div class="notion-text notion-block-1bed37c21fbb8034bcc7e88f00eefc12">I leave the country for freedom.</div><ul class="notion-list notion-list-disc notion-block-1bed37c21fbb8030b2d1ef54bf26403c"><li>--why=for freedom(which=freedom)</li></ul><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1bed37c21fbb8022ad20d23f22d7f31a" data-id="1bed37c21fbb8022ad20d23f22d7f31a"><span><div id="1bed37c21fbb8022ad20d23f22d7f31a" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb8022ad20d23f22d7f31a" title="总结"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">总结</span></span></h4><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1bed37c21fbb8077b4b3e64e5a945ebf"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A4336b294-dfb2-4144-860c-2c651c2c5a45%3Aimage.png?table=block&amp;id=1bed37c2-1fbb-8077-b4b3-e64e5a945ebf&amp;t=1bed37c2-1fbb-8077-b4b3-e64e5a945ebf" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1bed37c21fbb8004911dc57ad9b6a6b8" data-id="1bed37c21fbb8004911dc57ad9b6a6b8"><span><div id="1bed37c21fbb8004911dc57ad9b6a6b8" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb8004911dc57ad9b6a6b8" title="关系词总结"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">关系词总结</span></span></h4><table class="notion-simple-table notion-block-1bed37c21fbb80d98fc6d38e270194f7"><tbody><tr class="notion-simple-table-row notion-block-1bed37c21fbb80a5a9f5d4b42c562702"><td class="" style="width:120px"><div class="notion-simple-table-cell">先行词（被修饰词）</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">关系词做从句主语</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">关系词做从句宾语</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">关系词做从句状语</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">特点</div></td></tr><tr class="notion-simple-table-row notion-block-1bed37c21fbb80e9a19cc8c276d28a88"><td class="" style="width:120px"><div class="notion-simple-table-cell">人</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">who、that、whose+n.</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">whom、who、that</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">-----</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">关系词做宾语可省略</div></td></tr><tr class="notion-simple-table-row notion-block-1bed37c21fbb80d69005c24144874345"><td class="" style="width:120px"><div class="notion-simple-table-cell">物</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">which、that</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">that、which</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">-----</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">ㅤ</div></td></tr><tr class="notion-simple-table-row notion-block-1bed37c21fbb802f9a0ee28652d276a1"><td class="" style="width:120px"><div class="notion-simple-table-cell">原因</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">ㅤ</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">ㅤ</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">why、for which</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">ㅤ</div></td></tr><tr class="notion-simple-table-row notion-block-1bed37c21fbb8018a444e4cb3bda2b7f"><td class="" style="width:120px"><div class="notion-simple-table-cell">地点</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">ㅤ</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">ㅤ</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">where、prep.+which</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">ㅤ</div></td></tr><tr class="notion-simple-table-row notion-block-1bed37c21fbb80568433f61311365f97"><td class="" style="width:120px"><div class="notion-simple-table-cell">时间</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">ㅤ</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">ㅤ</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">when、prep.+which</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">ㅤ</div></td></tr></tbody></table><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1bed37c21fbb8063ad86f03e5dec85e0" data-id="1bed37c21fbb8063ad86f03e5dec85e0"><span><div id="1bed37c21fbb8063ad86f03e5dec85e0" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb8063ad86f03e5dec85e0" title="定语从句分类"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">定语从句分类</span></span></h4><div class="notion-text notion-block-1bed37c21fbb80c7ac87dfc6f9588c83">限制性：I met your friend who is stayingg in Paris.</div><div class="notion-text notion-block-1bed37c21fbb809f8aa0cd153cb4109e">非限制性：I met your mother, who is staying in Paris.</div><div class="notion-text notion-block-1bed37c21fbb801087fdeef046ac7961">非限制性定语从句的先行词具有唯一性，无需紧随限定。也就是关系词和被修饰词间有没有逗号，有则是非限制性。</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1bed37c21fbb80849f27e0175eb81c02" data-id="1bed37c21fbb80849f27e0175eb81c02"><span><div id="1bed37c21fbb80849f27e0175eb81c02" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb80849f27e0175eb81c02" title="定语从句 VS 同位语从句"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">定语从句 VS 同位语从句</span></span></h4><table class="notion-simple-table notion-block-1bed37c21fbb803898cfda7d09c01097"><tbody><tr class="notion-simple-table-row notion-block-1bed37c21fbb8056921afa3273355c9d"><td class="" style="width:120px"><div class="notion-simple-table-cell">ㅤ</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">定语从句</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">同位语从句</div></td></tr><tr class="notion-simple-table-row notion-block-1bed37c21fbb80e3a68de0693ee2fbcd"><td class="" style="width:120px"><div class="notion-simple-table-cell">that是否做从句成分</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">是（主语/宾语）</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">否</div></td></tr><tr class="notion-simple-table-row notion-block-1bed37c21fbb80b4b8b7e21a556672e9"><td class="" style="width:120px"><div class="notion-simple-table-cell">翻译</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">“...的”，从后往前翻译</div></td><td class="" style="width:120px"><div class="notion-simple-table-cell">直译</div></td></tr></tbody></table><ol start="1" class="notion-list notion-list-numbered notion-block-1bed37c21fbb8017b62bd3a87259b6cc" style="list-style-type:decimal"><li>I&#x27;ve made a promise that many influence my life.（定语从句）</li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-1bed37c21fbb800185c5feeac04de207" style="list-style-type:decimal"><li>I&#x27;ve made a promise that I will this contest someday.（同位语从句，名词性从句）</li></ol><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1bed37c21fbb8027b4ede920196475ff" data-id="1bed37c21fbb8027b4ede920196475ff"><span><div id="1bed37c21fbb8027b4ede920196475ff" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb8027b4ede920196475ff" title="特殊句式"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">特殊句式</span></span></h3><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1bed37c21fbb803db8efd6ef7b603d38" data-id="1bed37c21fbb803db8efd6ef7b603d38"><span><div id="1bed37c21fbb803db8efd6ef7b603d38" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb803db8efd6ef7b603d38" title="倒装"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">倒装</span></span></h4><blockquote class="notion-quote notion-block-1bed37c21fbb8099bca0cfb09746ee08"><div>本质：基于强调部分内容的目的对句序进行调整</div></blockquote><div class="notion-text notion-block-1bed37c21fbb80a894c6c276c44f8583">如：</div><div class="notion-text notion-block-1bed37c21fbb80c3a05bee35ee513905">Dr.Chang, Director of the Yangmingshan Geological Observatory, said that the earthquate was a 6.9.</div><div class="notion-text notion-block-1bed37c21fbb803cad42d9d7d7b62023">句子主要信息提前，省略宾语从句引导词that</div><div class="notion-text notion-block-1bed37c21fbb8003bc26fca0c2562231">The earthquate was a 6.9, Dr.Chang, Director of the Yangmingshan Geological Observatory, said.</div><div class="notion-text notion-block-1bed37c21fbb802d812ee2acbbd5e1aa">调整语序，方便理解，形成倒装</div><div class="notion-text notion-block-1bed37c21fbb80ffa08ec8112c16bbd1">The earthquate was a 6.9, said Dr.Chang, Director of the Yangmingshan Geological Observatory.</div><div class="notion-text notion-block-1bed37c21fbb80a5a95fe93371bac1df">引用句的倒装：</div><div class="notion-text notion-block-1bed37c21fbb801abaf3d2ae268b86f4">｛某人所说的话｝, said xxx（人）,（同位语补充说明身份）.</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1bed37c21fbb801db35dd3fac098fc16" data-id="1bed37c21fbb801db35dd3fac098fc16"><span><div id="1bed37c21fbb801db35dd3fac098fc16" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb801db35dd3fac098fc16" title="全部倒装"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">全部倒装</span></span></h4><ol start="1" class="notion-list notion-list-numbered notion-block-1bed37c21fbb8045897ff1103ba93f8e" style="list-style-type:decimal"><li>There be... 存在，有</li></ol><div class="notion-text notion-block-1bed37c21fbb8083821fd582b57b4f34">There is a girl. -&gt; A girl is there.</div><div class="notion-text notion-block-1bed37c21fbb808c980bf6ba86b04449">There is no gap between mind and matter. -&gt; No gap between mind and matter is there.</div><ol start="1" class="notion-list notion-list-numbered notion-block-1bed37c21fbb800ba83bfa87f440a087" style="list-style-type:decimal"><li>主系表-&gt;表系主（尾重）</li></ol><div class="notion-text notion-block-1bed37c21fbb80839927ca5487a3692c">My take-home essay about the evolution of language is attached. -&gt; Attached is my take-home essay about the evolution of language.</div><ol start="1" class="notion-list notion-list-numbered notion-block-1bed37c21fbb8030a7c6ce2e50ee3a57" style="list-style-type:decimal"><li>主谓状-&gt;状谓主</li></ol><div class="notion-text notion-block-1bed37c21fbb8009b10cc9f30b7cff73">A beast hides in the bush.-&gt;In the bush hides a best.</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1bed37c21fbb80f0bddbe326a03a4a7e" data-id="1bed37c21fbb80f0bddbe326a03a4a7e"><span><div id="1bed37c21fbb80f0bddbe326a03a4a7e" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb80f0bddbe326a03a4a7e" title="部分倒装"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">部分倒装</span></span></h4><div class="notion-text notion-block-1bed37c21fbb8036af2cff4cb3cc2764">部分谓语动词（助动词）提于主语前：陈述句-&gt;一般疑问句。（助动词提前）</div><ol start="1" class="notion-list notion-list-numbered notion-block-1bed37c21fbb800f892af8c049560007" style="list-style-type:decimal"><li>否定副词或词组位于句首，需要部分倒装</li></ol><div class="notion-text notion-block-1bed37c21fbb809d89afc98b06fb4f47">倒装前：We can not only make money but enjoy ourselves through that.</div><div class="notion-text notion-block-1bed37c21fbb8013b031f3008f330cb2">倒装后：Not only can we make money but enjoy ourselves through that.</div><ol start="1" class="notion-list notion-list-numbered notion-block-1bed37c21fbb8030b30fd123203424c7" style="list-style-type:decimal"><li>Only 位于句首，需要部分倒装</li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-1bed37c21fbb80cf9017e0ac9606a57e" style="list-style-type:decimal"><li>虚拟条件句省略if，从句需要部分倒装</li></ol><div class="notion-text notion-block-1bed37c21fbb8091bd15d1995c332cd4">倒装前：If he had kept his word, the problem would have been solved.</div><div class="notion-text notion-block-1bed37c21fbb8090b952ff0a02d6f1b0">倒装后：Had he kept his word, the problem would have been solved.</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1bed37c21fbb80259505d29db053fd43" data-id="1bed37c21fbb80259505d29db053fd43"><span><div id="1bed37c21fbb80259505d29db053fd43" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb80259505d29db053fd43" title="强调句"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">强调句</span></span></h4><div class="notion-text notion-block-1bed37c21fbb80e2a638d2b7fa94fb7e">句型：It is/was + 被强调的对象+引导词（that/who，只2个）+剩下的部分</div><div class="notion-text notion-block-1bed37c21fbb80a8b4e4ece3a65ac5fe">一般句：Tom went to the cinema last night.</div><div class="notion-text notion-block-1bed37c21fbb8034a08fe26bd1c99143">强调句：It was Tom who went to the cinema last night.</div><div class="notion-text notion-block-1bed37c21fbb802a8e65da8198f0662e">It was the cinema that Tom went to last night.</div><div class="notion-text notion-block-1bed37c21fbb800c9a57e97b36098fdd">原句：That he told me not to do it dirves me to continue.</div><div class="notion-text notion-block-1bed37c21fbb80fcb327c84a5414ea11">形式主语从句：It dirves me to continue that he told me not to do.</div><div class="notion-text notion-block-1bed37c21fbb80d3952aefae062a1acb">强调句：It is that he told me not to do it dirves me to continue.</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1bed37c21fbb808f9901c08fc6fab844" data-id="1bed37c21fbb808f9901c08fc6fab844"><span><div id="1bed37c21fbb808f9901c08fc6fab844" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1bed37c21fbb808f9901c08fc6fab844" title="虚拟语气"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">虚拟语气</span></span></h4><div class="notion-text notion-block-1bed37c21fbb80dbb37bc81406228397">要义：虚拟---实际未发生或不可能发生的事情。</div></main></div>]]></content:encoded>
        </item>
    </channel>
</rss>