<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/"
    xmlns:atom="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/" version="2.0">
    <channel>
        
        <title>
            <![CDATA[ CSV - freeCodeCamp.org ]]>
        </title>
        <description>
            <![CDATA[ freeCodeCamp 是一个免费学习编程的开发者社区，涵盖 Python、HTML、CSS、React、Vue、BootStrap、JSON 教程等，还有活跃的技术论坛和丰富的社区活动，在你学习编程和找工作时为你提供建议和帮助。 ]]>
        </description>
        <link>https://www.freecodecamp.org/chinese/news/</link>
        <image>
            <url>https://cdn.freecodecamp.org/universal/favicons/favicon.png</url>
            <title>
                <![CDATA[ CSV - freeCodeCamp.org ]]>
            </title>
            <link>https://www.freecodecamp.org/chinese/news/</link>
        </image>
        <generator>Eleventy</generator>
        <lastBuildDate>Thu, 28 May 2026 16:39:31 +0000</lastBuildDate>
        <atom:link href="https://www.freecodecamp.org/chinese/news/tag/csv/rss.xml" rel="self" type="application/rss+xml" />
        <ttl>60</ttl>
        
            <item>
                <title>
                    <![CDATA[ 什么是 CSV 文件，如何打开 CSV 文件格式 ]]>
                </title>
                <description>
                    <![CDATA[ 原文：What is a CSV File and How to Open the CSV File Format [https://www.freecodecamp.org/news/what-is-a-csv-file-and-how-to-open-the-csv-file-format/] ，作者：Beau Carnes [https://www.freecodecamp.org/news/author/beau/] 什么是 .csv 文件？CSV 是逗号分隔值的意思。CSV 文件是一个存储表格和电子表格信息的纯文本文件，其内容通常是一个文本、数字或日期的表格。CSV 文件可以使用以表格形式存储数据的程序轻松导入和导出。 CSV 文件格式 通常 CSV 文件的第一行包含表格的列标签。随后的每一行代表表格的一行。逗号分隔行中的每个单元格，这就是名称的由来。 下面是一个 CSV 文件的例子。这个例子有三列，分别标为“姓名”、“ID”和“食物”。它有五行，包括标题行。 name, id, favorite food quincy, 1, hot dogs beau, 2, c ]]>
                </description>
                <link>https://www.freecodecamp.org/chinese/news/what-is-a-csv-file-and-how-to-open-the-csv-file-format/</link>
                <guid isPermaLink="false">6247c78799ec7406219e52e8</guid>
                
                    <category>
                        <![CDATA[ CSV ]]>
                    </category>
                
                <dc:creator>
                    <![CDATA[ Miya Liu ]]>
                </dc:creator>
                <pubDate>Fri, 01 Apr 2022 03:00:00 +0000</pubDate>
                <media:content url="https://chinese.freecodecamp.org/news/content/images/2022/04/5f9c9fb1740569d1a4ca4407.jpeg" medium="image" />
                <content:encoded>
                    <![CDATA[ <p>原文：<a href="https://www.freecodecamp.org/news/what-is-a-csv-file-and-how-to-open-the-csv-file-format/">What is a CSV File and How to Open the CSV File Format</a>，作者：<a href="https://www.freecodecamp.org/news/author/beau/">Beau Carnes</a></p><p>什么是 .csv 文件？CSV 是逗号分隔值的意思。CSV 文件是一个存储表格和电子表格信息的纯文本文件，其内容通常是一个文本、数字或日期的表格。CSV 文件可以使用以表格形式存储数据的程序轻松导入和导出。</p><h2 id="csv-">CSV 文件格式</h2><p>通常 CSV 文件的第一行包含表格的列标签。随后的每一行代表表格的一行。逗号分隔行中的每个单元格，这就是名称的由来。</p><p>下面是一个 CSV 文件的例子。这个例子有三列，分别标为“姓名”、“ID”和“食物”。它有五行，包括标题行。</p><pre><code>name, id, favorite food
quincy, 1, hot dogs
beau, 2, cereal
abbey, 3, pizza
mrugesh, 4, ice cream</code></pre><p>以下是该文件在电子表格中的样子。</p><figure class="kg-card kg-image-card"><img src="https://www.freecodecamp.org/news/content/images/2019/10/image-33.png" class="kg-image" alt="image-33" width="600" height="400" loading="lazy"></figure><p>由于 CSV 文件只是一个文本文件，你几乎可以在任何文本编辑器中创建一个。你也可以从几乎任何电子表格程序中导出 CSV 文件，如 Microsoft Word、OpenOffice Calc 或 Google Sheets。</p><h2 id="-csv-">如何打开 CSV 文件</h2><p>打开一个 CSV 文件比你想象的要简单。在几乎所有的文本编辑器或电子表格程序中，只要选择 <strong>文件&gt;打开</strong>，然后选择 CSV 文件。</p><p>对于大多数人来说，最好是使用电子表格程序。电子表格程序以一种比文本编辑器更容易阅读和操作的方式显示数据。我们将详细介绍如何在 Microsoft Excel、OpenOffice Calc 和 Google Sheets 中打开 CSV 文件。</p><h3 id="-csv-microsoft-excel">打开 CSV 文件 Microsoft Excel</h3><p>如果你已经安装了 Microsoft Excel，只要双击 CSV 文件就可以在 Excel 中打开它。双击该文件后，你可能会看到一个提示，询问你想用哪个程序打开它。选择 Microsoft Excel。</p><p>如果你已经在 Microsoft Excel 中，你可以选择<strong>文件&gt;打开</strong>并选择 CSV 文件。如果你没有看到你想打开的文件，你可能需要把要打开的文件类型改为“文本文件（*.prn, *.txt, *.csv）”。Excel 将在一个新的工作簿中显示数据。</p><p>你也可以将 CSV 文件中的数据导入到现有的工作表中。</p><ol><li>在<strong>数据</strong>选项卡上，在<strong>获取和转换数据</strong>组中，单击<strong>从文本/CSV</strong>。</li><li>在<strong>导入数据</strong>对话框中，双击你要导入的 CSV 文件，然后点击<strong>导入</strong>。</li></ol><p>在预览对话框中，你有几个选项：</p><ul><li>如果你想把数据直接加载到一个新的工作表中，选择<strong>加载</strong>。</li><li>如果你想把数据加载到一个表或现有的工作表中，选择<strong>加载到</strong>。</li><li>如果你想把数据加载到 Power Query，并在把它带到 Excel 之前对其进行编辑，则选择<strong>转换数据</strong>。</li></ul><h3 id="-csv-openoffice-calc">打开一个 CSV 文件 OpenOffice Calc</h3><p>如果你已经安装了 OpenOffice Calc，只要双击一个 CSV 文件就可以打开它。双击该文件后，你可能会看到一个提示，询问你想用哪个程序来打开它，选择 OpenOffice Calc。</p><p>如果你已经在 OpenOffice Calc 中，你可以选择<strong>文件&gt;打开</strong>并选择 CSV 文件。</p><h3 id="-csv-google-sheets">打开 CSV 文件 Google Sheets</h3><p>首先，在 Google Sheets 谷歌表单中打开一个新的电子表格文件。最快的方法是访问 <a href="https://sheets.new/">https://sheets.new</a>。</p><p>接下来，选择<strong>文件&gt;导入</strong>。</p><figure class="kg-card kg-image-card"><img src="https://www.freecodecamp.org/news/content/images/2019/10/image-35.png" class="kg-image" alt="image-35" width="600" height="400" loading="lazy"></figure><p>选择<strong>上传</strong>选项卡，然后将 CSV 文件拖到窗口上，或者从你的电脑上选择 CSV。</p><figure class="kg-card kg-image-card"><img src="https://www.freecodecamp.org/news/content/images/2019/10/image-36.png" class="kg-image" alt="image-36" width="600" height="400" loading="lazy"></figure><p>你也许可以保留<strong>导入文件</strong>窗口的默认值，但要仔细查看以确保无误。然后选择<strong>导入数据</strong>。</p><figure class="kg-card kg-image-card"><img src="https://www.freecodecamp.org/news/content/images/2019/10/image-37.png" class="kg-image" alt="image-37" width="600" height="400" loading="lazy"></figure><p>完成啦！</p><figure class="kg-card kg-image-card"><img src="https://chinese.freecodecamp.org/news/content/images/2022/04/image.png" class="kg-image" alt="image" width="600" height="400" loading="lazy"></figure> ]]>
                </content:encoded>
            </item>
        
            <item>
                <title>
                    <![CDATA[ CSV 格式——如何打开 .csv 文件并将其导出 ]]>
                </title>
                <description>
                    <![CDATA[ 你可能听说过 CSV 文件，但它是什么意思？ 在本文中，我们将了解什么是 CSV 文件，以及如何使用 Microsoft Excel 和 Google 表格打开和导出它们。 什么是 CSV 文件 CSV 代表逗号分隔值，这是一个包含由逗号分隔的数据的文件，通常用于电子表格和数据库。 这是 CSV 文件的示例。我们有 Full Name 和 Major 两类，数据之间用逗号分隔。 Full Name,Major Dave Wilson,Computer Science Major Kelly Clarks,Music Major James Anderson,Business Major 有时，数据的分隔符号不必是逗号，它可以是一个空格或分号，但最常用的是逗号。 CSV 文件非常有用，因为你可以在不同程序之间共享信息，只要它们可以打开文件即可。 例如，我可以在 Microsoft Excel 中创建一个 CSV 文件，并将该数据导入到我的联系人中。 如何在 Microsoft Excel 中创建和导出 CSV ]]>
                </description>
                <link>https://www.freecodecamp.org/chinese/news/csv-format-how-to-open-a-csv-file-and-export-it/</link>
                <guid isPermaLink="false">615071a1e395c7062ee3c10b</guid>
                
                    <category>
                        <![CDATA[ CSV ]]>
                    </category>
                
                <dc:creator>
                    <![CDATA[ Miya Liu ]]>
                </dc:creator>
                <pubDate>Fri, 24 Sep 2021 03:00:00 +0000</pubDate>
                <media:content url="https://chinese.freecodecamp.org/news/content/images/2021/09/lukas-blazek-mcSDtbWXUZU-unsplash-1.jpeg" medium="image" />
                <content:encoded>
                    <![CDATA[ <p>你可能听说过 CSV 文件，但它是什么意思？</p><p>在本文中，我们将了解什么是 CSV 文件，以及如何使用 Microsoft Excel 和 Google 表格打开和导出它们。</p><h2 id="-csv-">什么是 CSV 文件</h2><p>CSV 代表逗号分隔值，这是一个包含由逗号分隔的数据的文件，通常用于电子表格和数据库。</p><p>这是 CSV 文件的示例。我们有 Full Name 和 Major 两类，数据之间用逗号分隔。</p><pre><code class="language-txt">Full Name,Major
Dave Wilson,Computer Science Major
Kelly Clarks,Music Major
James Anderson,Business Major</code></pre><p>有时，数据的分隔符号不必是逗号，它可以是一个空格或分号，但最常用的是逗号。</p><p>CSV 文件非常有用，因为你可以在不同程序之间共享信息，只要它们可以打开文件即可。</p><p>例如，我可以在 Microsoft Excel 中创建一个 CSV 文件，并将该数据导入到我的联系人中。</p><figure class="kg-card kg-image-card"><img src="https://www.freecodecamp.org/news/content/images/2021/09/Screen-Shot-2021-09-17-at-7.17.54-AM.png" class="kg-image" alt="Screen-Shot-2021-09-17-at-7.17.54-AM" width="600" height="400" loading="lazy"></figure><figure class="kg-card kg-image-card"><img src="https://www.freecodecamp.org/news/content/images/2021/09/Screen-Shot-2021-09-17-at-7.19.34-AM.png" class="kg-image" alt="Screen-Shot-2021-09-17-at-7.19.34-AM" width="600" height="400" loading="lazy"></figure><h2 id="-microsoft-excel-csv-">如何在 Microsoft Excel 中创建和导出 CSV 文件</h2><p>Microsoft Excel 是一种强大的工具，可让你以电子表格的形式组织数据。Excel 最常见的用例是创建预算、排序和存储数据以及创建图表或图形。</p><p>以下是在 Excel 中创建和导出 CSV 文件的步骤。</p><ul><li>单击以打开 Microsoft Excel，点击“文件 &gt; 新建”</li></ul><figure class="kg-card kg-image-card"><img src="https://www.freecodecamp.org/news/content/images/2021/09/Screen-Shot-2021-09-17-at-7.49.16-AM.png" class="kg-image" alt="Screen-Shot-2021-09-17-at-7.49.16-AM" width="600" height="400" loading="lazy"></figure><ul><li>在电子表格中添加数据</li></ul><figure class="kg-card kg-image-card"><img src="https://www.freecodecamp.org/news/content/images/2021/09/Screen-Shot-2021-09-17-at-7.52.46-AM.png" class="kg-image" alt="Screen-Shot-2021-09-17-at-7.52.46-AM" width="600" height="400" loading="lazy"></figure><ul><li>点击“文件 &gt; 保存”</li></ul><figure class="kg-card kg-image-card"><img src="https://www.freecodecamp.org/news/content/images/2021/09/Screen-Shot-2021-09-17-at-7.53.58-AM.png" class="kg-image" alt="Screen-Shot-2021-09-17-at-7.53.58-AM" width="600" height="400" loading="lazy"></figure><ul><li>选择文件格式为 <code>.csv</code>，点击“保存”</li></ul><figure class="kg-card kg-image-card"><img src="https://www.freecodecamp.org/news/content/images/2021/09/Screen-Shot-2021-09-17-at-7.55.00-AM.png" class="kg-image" alt="Screen-Shot-2021-09-17-at-7.55.00-AM" width="600" height="400" loading="lazy"></figure><h2 id="-microsoft-excel-csv--1"><strong>如何在 Microsoft Excel 打开一个 CSV 文件</strong></h2><ul><li>打开 Excel，点击“文件 &gt; 打开”</li></ul><figure class="kg-card kg-image-card"><img src="https://www.freecodecamp.org/news/content/images/2021/09/Screen-Shot-2021-09-17-at-7.30.33-AM.png" class="kg-image" alt="Screen-Shot-2021-09-17-at-7.30.33-AM" width="600" height="400" loading="lazy"></figure><ul><li>找到 CSV 文件，并点击“打开”</li></ul><figure class="kg-card kg-image-card"><img src="https://www.freecodecamp.org/news/content/images/2021/09/Screen-Shot-2021-09-17-at-7.32.30-AM.png" class="kg-image" alt="Screen-Shot-2021-09-17-at-7.32.30-AM" width="600" height="400" loading="lazy"></figure><p>然后，你应该会看到在电子表格中打开的数据：</p><figure class="kg-card kg-image-card"><img src="https://www.freecodecamp.org/news/content/images/2021/09/Screen-Shot-2021-09-17-at-7.33.30-AM.png" class="kg-image" alt="Screen-Shot-2021-09-17-at-7.33.30-AM" width="600" height="400" loading="lazy"></figure><h2 id="how-to-create-and-export-a-csv-file-in-google-sheets"><strong>How to Create and Export a CSV file in Google Sheets</strong></h2><p>If you have a Google account, you can create and export CSV files using Google Sheets.</p><ol><li>Sign into your Google account</li></ol><h2 id="-google-csv-">如何在 Google 表格中创建和导出 CSV 文件</h2><p>如果你有 Google 帐户，则可以使用 Google 表格创建和导出 CSV 文件。</p><ul><li>登录你的 Google 帐户</li></ul><figure class="kg-card kg-image-card"><img src="https://www.freecodecamp.org/news/content/images/2021/09/Screen-Shot-2021-09-17-at-7.57.54-AM.png" class="kg-image" alt="Screen-Shot-2021-09-17-at-7.57.54-AM" width="600" height="400" loading="lazy"></figure><ul><li>在 Google Apps 下，向下滚动并点击 “Sheets”</li></ul><figure class="kg-card kg-image-card"><img src="https://www.freecodecamp.org/news/content/images/2021/09/Screen-Shot-2021-09-17-at-8.00.22-AM.png" class="kg-image" alt="Screen-Shot-2021-09-17-at-8.00.22-AM" width="600" height="400" loading="lazy"></figure><ul><li>要创建新的 Google 表单，请单击 “Blank”</li></ul><figure class="kg-card kg-image-card"><img src="https://www.freecodecamp.org/news/content/images/2021/09/Screen-Shot-2021-09-17-at-8.01.16-AM.png" class="kg-image" alt="Screen-Shot-2021-09-17-at-8.01.16-AM" width="600" height="400" loading="lazy"></figure><ul><li>添加数据，并给你的电子表格命名</li></ul><figure class="kg-card kg-image-card"><img src="https://www.freecodecamp.org/news/content/images/2021/09/Screen-Shot-2021-09-17-at-8.04.23-AM.png" class="kg-image" alt="Screen-Shot-2021-09-17-at-8.04.23-AM" width="600" height="400" loading="lazy"></figure><ul><li>单击“文件 &gt; 下载”，并选择 “.csv”</li></ul><figure class="kg-card kg-image-card"><img src="https://www.freecodecamp.org/news/content/images/2021/09/Screen-Shot-2021-09-17-at-8.08.31-AM.png" class="kg-image" alt="Screen-Shot-2021-09-17-at-8.08.31-AM" width="600" height="400" loading="lazy"></figure><p>然后该文件应该被下载到你的电脑上，你可以在任何能打开 CSV 文件的程序中打开它。</p><h2 id="-google-csv--1">如何在 Google 表格中打开 CSV 文件</h2><ul><li>打开一个空白的 Google 电子表格</li></ul><figure class="kg-card kg-image-card"><img src="https://www.freecodecamp.org/news/content/images/2021/09/Screen-Shot-2021-09-17-at-8.12.16-AM.png" class="kg-image" alt="Screen-Shot-2021-09-17-at-8.12.16-AM" width="600" height="400" loading="lazy"></figure><ul><li>点击“文件 &gt; 导入”</li></ul><figure class="kg-card kg-image-card"><img src="https://www.freecodecamp.org/news/content/images/2021/09/Screen-Shot-2021-09-17-at-8.12.53-AM.png" class="kg-image" alt="Screen-Shot-2021-09-17-at-8.12.53-AM" width="600" height="400" loading="lazy"></figure><p>你有四个选项可供选择：<br>1、从 Google Drive 导入文件<br>2、导入与你共享的文件<br>3、导入最近的文件<br>4、从你的计算机导入文件</p><figure class="kg-card kg-image-card"><img src="https://www.freecodecamp.org/news/content/images/2021/09/Screen-Shot-2021-09-17-at-8.14.51-AM.png" class="kg-image" alt="Screen-Shot-2021-09-17-at-8.14.51-AM" width="600" height="400" loading="lazy"></figure><ul><li>要从你的计算机导入文件，请单击“上传”</li></ul><figure class="kg-card kg-image-card"><img src="https://www.freecodecamp.org/news/content/images/2021/09/Screen-Shot-2021-09-17-at-8.15.38-AM.png" class="kg-image" alt="Screen-Shot-2021-09-17-at-8.15.38-AM" width="600" height="400" loading="lazy"></figure><ul><li>从你的计算机中选择一个文件，然后你应该会看到一个像这样的弹出窗口：</li></ul><figure class="kg-card kg-image-card"><img src="https://www.freecodecamp.org/news/content/images/2021/09/Screen-Shot-2021-09-17-at-8.17.20-AM.png" class="kg-image" alt="Screen-Shot-2021-09-17-at-8.17.20-AM" width="600" height="400" loading="lazy"></figure><p>你可以选择保留默认选项或更改分隔符类型。</p><figure class="kg-card kg-image-card"><img src="https://www.freecodecamp.org/news/content/images/2021/09/Screen-Shot-2021-09-17-at-8.17.58-AM.png" class="kg-image" alt="Screen-Shot-2021-09-17-at-8.17.58-AM" width="600" height="400" loading="lazy"></figure><p>你还可以选择保留默认选项或更改导入位置。</p><figure class="kg-card kg-image-card"><img src="https://www.freecodecamp.org/news/content/images/2021/09/Screen-Shot-2021-09-17-at-8.19.19-AM.png" class="kg-image" alt="Screen-Shot-2021-09-17-at-8.19.19-AM" width="600" height="400" loading="lazy"></figure><p>完成后，单击“导入数据”按钮。</p><figure class="kg-card kg-image-card"><img src="https://www.freecodecamp.org/news/content/images/2021/09/Screen-Shot-2021-09-17-at-8.20.00-AM.png" class="kg-image" alt="Screen-Shot-2021-09-17-at-8.20.00-AM" width="600" height="400" loading="lazy"></figure><p>你现在应该会看到导入的信息出现在你的 Google 电子表格中。</p><figure class="kg-card kg-image-card"><img src="https://www.freecodecamp.org/news/content/images/2021/09/Screen-Shot-2021-09-17-at-8.20.46-AM.png" class="kg-image" alt="Screen-Shot-2021-09-17-at-8.20.46-AM" width="600" height="400" loading="lazy"></figure><p>这就是在 Microsoft Excel 和 Google Sheets 中创建、打开和导出 CSV 文件的方法。</p><p>原文：<a href="https://www.freecodecamp.org/news/csv-format-how-to-open-a-csv-file-and-export-it/">CSV Format – How to Open a .csv File and Export it</a>，作者：<a href="https://www.freecodecamp.org/news/author/jessica-wilkins/">Jessica Wilkins</a></p> ]]>
                </content:encoded>
            </item>
        
    </channel>
</rss>
