<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>代码 on CFO580.CN 财务总监我帮您</title>
    <link>https://cfo580.cn/tags/%E4%BB%A3%E7%A0%81/</link>
    <description>Recent content in 代码 on CFO580.CN 财务总监我帮您</description>
    <generator>Hugo</generator>
    <language>zh-cn</language>
    <lastBuildDate>Sat, 19 Sep 2026 10:39:00 +0800</lastBuildDate>
    <atom:link href="https://cfo580.cn/tags/%E4%BB%A3%E7%A0%81/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>📁 Python pathlib.Path 路径处理与 import / from...import 区别</title>
      <link>https://cfo580.cn/article/pythonpathlibpath-lu-jing-chu-li-yu-importfromimport-qu-bie/</link>
      <pubDate>Sat, 19 Sep 2026 10:39:00 +0800</pubDate>
      <guid>https://cfo580.cn/article/pythonpathlibpath-lu-jing-chu-li-yu-importfromimport-qu-bie/</guid>
      <description>import 前加 from，表示模块写在 from 和 import 之间（如 pathlib），模块里要拿的类写在 import 后面（如 Path）。pathlib 是 Python 3.4+ 引入的面向对象文件系统路径处理模块，比传…</description>
    </item>
    <item>
      <title>📁 Python Path.mkdir()：安全创建文件夹</title>
      <link>https://cfo580.cn/article/pythonpathmkdir-an-quan-chuang-jian-wen-jian-jia/</link>
      <pubDate>Sat, 19 Sep 2026 10:38:00 +0800</pubDate>
      <guid>https://cfo580.cn/article/pythonpathmkdir-an-quan-chuang-jian-wen-jian-jia/</guid>
      <description>mkdir 是 Python pathlib.Path 对象的核心方法，用于创建目录（文件夹），等价于操作系统的 mkdir 命令但封装得更易用。os 模块也有 os.mkdir()/os.makedirs()，本文重点讲 pathlib…</description>
    </item>
    <item>
      <title>🔢 Excel 用 COUNTIFS 把同一凭证号的所有行一起筛出来</title>
      <link>https://cfo580.cn/article/excel-yong-countifs-ba-tong-yi-ping-zheng-hao-de-suo-you-xing-yi-qi-shai-chu-lai/</link>
      <pubDate>Sat, 19 Sep 2026 10:37:00 +0800</pubDate>
      <guid>https://cfo580.cn/article/excel-yong-countifs-ba-tong-yi-ping-zheng-hao-de-suo-you-xing-yi-qi-shai-chu-lai/</guid>
      <description>会计常遇到的需求：明细账里某张凭证可能跨多行，比如一行借 5601、另一行贷对方科目。只想筛 5601 只会留下借方那一行，对方科目丢了。要把同一张凭证的所有行一起筛出来，最靠谱的是辅助列 + COUNTIFS。 1. 在表格最后插一列辅助…</description>
    </item>
    <item>
      <title>📊Excel GROUPBY 函数完整语法：5 个参数与 0/1/2/3 缺失值处理</title>
      <link>https://cfo580.cn/article/3e08ac76-412c-81e4-888c-c90dc70650d9/</link>
      <pubDate>Sat, 19 Sep 2026 10:35:00 +0800</pubDate>
      <guid>https://cfo580.cn/article/3e08ac76-412c-81e4-888c-c90dc70650d9/</guid>
      <description>=GROUPBY(分组区域,聚合区域,[聚合函数],[缺失值0-3],[维度0/1])。第4参数3=忽略空分组+忽略空值行，最干净；维度1=二维行列交叉透视。不能用整列 A:A。</description>
    </item>
    <item>
      <title>➕ Excel SUM 自适应行数加总：=SUM(A1:INDEX(A:A,ROW()-1))</title>
      <link>https://cfo580.cn/article/excelsum-zi-shi-ying-xing-shu-jia-zong-suma1indexaarow1/</link>
      <pubDate>Sat, 19 Sep 2026 10:34:00 +0800</pubDate>
      <guid>https://cfo580.cn/article/excelsum-zi-shi-ying-xing-shu-jia-zong-suma1indexaarow1/</guid>
      <description>🧮Excel SUM 自适应行数加总： SUM(A1:INDEX(A:A,ROW() 1)) 让 SUM 自动加总到“当前行的上一行”，往下拖公式时范围自动扩展，不用手改结束行： 从哪一行开始加总，就改 SUM 的第一个参数 A1； 加总哪…</description>
    </item>
    <item>
      <title>🔢 会计人常用的 9 个 Excel 动态数组函数</title>
      <link>https://cfo580.cn/article/kuai-ji-ren-chang-yong-de-9-ge-excel-dong-tai-shu-zu-han-shu/</link>
      <pubDate>Sat, 19 Sep 2026 10:33:00 +0800</pubDate>
      <guid>https://cfo580.cn/article/kuai-ji-ren-chang-yong-de-9-ge-excel-dong-tai-shu-zu-han-shu/</guid>
      <description>Excel 365 动态数组函数在财务报表、对账、数据清洗和汇总上极提效。下面 9 个是会计最常用的，按用途分三类。 一、数据提取与筛选 FILTER：从总账/序时账按科目、部门、金额筛凭证： UNIQUE：从流水账提取不重复供应商/客户/…</description>
    </item>
    <item>
      <title>🔗 Python join()：用分隔符把字符串序列拼成一个串</title>
      <link>https://cfo580.cn/article/pythonjoin-yong-fen-ge-fu-ba-zi-fu-chuan-xu-lie-pin-cheng-yi-ge-chuan/</link>
      <pubDate>Sat, 19 Sep 2026 10:32:00 +0800</pubDate>
      <guid>https://cfo580.cn/article/pythonjoin-yong-fen-ge-fu-ba-zi-fu-chuan-xu-lie-pin-cheng-yi-ge-chuan/</guid>
      <description>基本语法 核心作用：将字符串序列（如列表、元组等）用指定分隔符连接成一个字符串。 1. 最常用：列表 → 字符串 2. 分隔符可以是任意字符串 3. 必须是字符串序列 4. 其他可迭代对象 5. 常见坑 只能拼接字符串，遇到非字符…</description>
    </item>
    <item>
      <title>🐼 pandas 小括号 () 和方括号 [] 的分工</title>
      <link>https://cfo580.cn/article/pandas-xiao-kuo-hao-he-fang-kuo-hao-de-fen-gong/</link>
      <pubDate>Sat, 19 Sep 2026 10:29:00 +0800</pubDate>
      <guid>https://cfo580.cn/article/pandas-xiao-kuo-hao-he-fang-kuo-hao-de-fen-gong/</guid>
      <description>小括号 () 与方括号 [] 在 pandas 里职责完全不同，记住一句话即可： () 用来「传参、调用」，[] 用来「索引、选取」。 1. 小括号 ()：把参数交给函数/方法 df.groupby(&amp;ldquo;地区&amp;rdquo;)：把字符串 &amp;ldquo;地区&amp;rdquo; 作为参…</description>
    </item>
    <item>
      <title>🔤 Power Query 常用英文术语对照表</title>
      <link>https://cfo580.cn/article/powerquery-chang-yong-ying-wen-shu-yu-dui-zhao-biao/</link>
      <pubDate>Sat, 19 Sep 2026 10:27:00 +0800</pubDate>
      <guid>https://cfo580.cn/article/powerquery-chang-yong-ying-wen-shu-yu-dui-zhao-biao/</guid>
      <description>一、基础核心 英文 中文 通俗理解 Query 查询 一套数据处理流程 Power Query Power 查询 整个数据处理工具 Workbook Query 工作簿查询 保存在文件里的查询 Reference 引用 引用另一个查询，不重…</description>
    </item>
    <item>
      <title>🔁 Python 可迭代对象：财会批量处理的基础概念</title>
      <link>https://cfo580.cn/article/python-ke-die-dai-dui-xiang-cai-kuai-pi-liang-chu-li-de-ji-chu-gai-nian/</link>
      <pubDate>Sat, 19 Sep 2026 10:24:00 +0800</pubDate>
      <guid>https://cfo580.cn/article/python-ke-die-dai-dui-xiang-cai-kuai-pi-liang-chu-li-de-ji-chu-gai-nian/</guid>
      <description>深入理解 Python 中的「可迭代对象」，这是掌握循环、批量处理财务数据的核心概念。简单说，可迭代对象（Iterable）就是“能被逐个取出元素的容器”——比如你处理的 Excel 文件路径、发票金额列表、pandas 的财务列数据，本质…</description>
    </item>
    <item>
      <title>📋 Python list() 函数：把生成器/元组/Series 转成列表</title>
      <link>https://cfo580.cn/article/pythonlist-han-shu-ba-sheng-cheng-qi-yuan-zu-series-zhuan-cheng-lie-biao/</link>
      <pubDate>Sat, 19 Sep 2026 10:22:00 +0800</pubDate>
      <guid>https://cfo580.cn/article/pythonlist-han-shu-ba-sheng-cheng-qi-yuan-zu-series-zhuan-cheng-lie-biao/</guid>
      <description>深入理解 Python 中的 list() 函数，这是处理财会数据时高频用到的基础函数。简单说，list() 是用来创建或转换出列表（Python 最核心的有序可变数据结构）的工具——不管是把 .glob() 找到的 Excel 文件路径转…</description>
    </item>
    <item>
      <title>📁 Python Path.parent：从文件路径取出所在目录</title>
      <link>https://cfo580.cn/article/pythonpathparent-cong-wen-jian-lu-jing-qu-chu-suo-zai-mu-lu/</link>
      <pubDate>Sat, 19 Sep 2026 10:20:00 +0800</pubDate>
      <guid>https://cfo580.cn/article/pythonpathparent-cong-wen-jian-lu-jing-qu-chu-suo-zai-mu-lu/</guid>
      <description>核心讲解：output dir output file.parent 这行代码的核心是从「文件路径对象」中提取其所在的「目录路径对象」，是 pathlib.Path 最常用的路径解析操作之一，分前提、含义、用法、场景四层讲清。 1. 前提…</description>
    </item>
    <item>
      <title>🛡️ Python try-except：异常处理让脚本不闪退</title>
      <link>https://cfo580.cn/article/pythontryexcept-yi-chang-chu-li-rang-jiao-ben-bu-shan-tui/</link>
      <pubDate>Sat, 19 Sep 2026 10:19:00 +0800</pubDate>
      <guid>https://cfo580.cn/article/pythontryexcept-yi-chang-chu-li-rang-jiao-ben-bu-shan-tui/</guid>
      <description>先看一段典型代码： ❓ 问题：try: / except Exception as e: 到底起什么作用？ 一、核心作用：try except 是 Python 的异常处理机制 简单说，try 块的本质是：执行一段代码，同时盯着这段代码的执…</description>
    </item>
    <item>
      <title>🧱 Excel 纵向拼接多表：VSTACK 用法与进阶组合公式</title>
      <link>https://cfo580.cn/article/excel-zong-xiang-pin-jie-duo-biao-vstack-yong-fa-yu-jin-jie-zu-he-gong-shi/</link>
      <pubDate>Sat, 19 Sep 2026 10:16:00 +0800</pubDate>
      <guid>https://cfo580.cn/article/excel-zong-xiang-pin-jie-duo-biao-vstack-yong-fa-yu-jin-jie-zu-he-gong-shi/</guid>
      <description>使用前提 1. 每张表结构要一样：VSTACK 是按位置拼，不按列名匹配（按列名的 TSTACK 截至 2026 年还不好用）； 2. 列顺序一致，个别表多几列会出现空列； 3. 先把每张表 Ctrl+T 变成超级表，并在“表设计”最左边给…</description>
    </item>
    <item>
      <title>🐼 pandas 单/双方括号与 reset_index：选列为什么要写两层 []</title>
      <link>https://cfo580.cn/article/pandas-dan-shuang-fang-kuo-hao-yu-resetindex-xuan-lie-wei-shen-me-yao-xie-liang-ceng/</link>
      <pubDate>Sat, 19 Sep 2026 10:14:00 +0800</pubDate>
      <guid>https://cfo580.cn/article/pandas-dan-shuang-fang-kuo-hao-yu-resetindex-xuan-lie-wei-shen-me-yao-xie-liang-ceng/</guid>
      <description>一个方括号 [&amp;lsquo;c&amp;rsquo;:&amp;lsquo;g&amp;rsquo;]：切片，按索引顺序连续取，首尾都包含。 两个方括号 [[&amp;rsquo;d&amp;rsquo;,&amp;lsquo;f&amp;rsquo;,&amp;lsquo;b&amp;rsquo;]]：花式索引，按你给的任意顺序、任意集合取，不要求连续，结果顺序跟你写的列表一致。 场景 单 [] 切片 双 [] 花式 要连续区…</description>
    </item>
    <item>
      <title>🔍 Excel SEARCH 函数超详细：模糊查找与 SEARCH/FIND 对比</title>
      <link>https://cfo580.cn/article/excelsearch-han-shu-chao-xiang-xi-mo-hu-cha-zhao-yu-searchfind-dui-bi/</link>
      <pubDate>Sat, 19 Sep 2026 10:13:00 +0800</pubDate>
      <guid>https://cfo580.cn/article/excelsearch-han-shu-chao-xiang-xi-mo-hu-cha-zhao-yu-searchfind-dui-bi/</guid>
      <description>SEARCH 是 Excel 最核心的文本模糊查找函数，和 ISNUMBER、FILTER 是黄金搭档，实现“姓名包含某字”这类模糊筛选。 一、定位与语法 在指定文本/区域里查找内容，返回它出现的位置数字；找不到返回 VALUE!。不区分大…</description>
    </item>
    <item>
      <title>📥 Python 输入输出：print/input、文件读写与 pandas 读写 Excel/CSV</title>
      <link>https://cfo580.cn/article/python-shu-ru-shu-chu-printinput-wen-jian-du-xie-yu-pandas-du-xie-excelcsv/</link>
      <pubDate>Sat, 19 Sep 2026 10:11:00 +0800</pubDate>
      <guid>https://cfo580.cn/article/python-shu-ru-shu-chu-printinput-wen-jian-du-xie-yu-pandas-du-xie-excelcsv/</guid>
      <description>结合 pandas 数据处理场景（读 Excel、处理表格、保存结果），Python 的输入输出核心围绕「数据读取」和「数据保存」，按控制台交互 → 文件 I/O → pandas 专属 I/O 的逻辑拆解。 一、基础输入输出（控制台交互）…</description>
    </item>
    <item>
      <title>🪪pandas 练习：把身份证号生日部分替换成星号</title>
      <link>https://cfo580.cn/article/3e08ac76-412c-814b-8fdf-dfc52924d8be/</link>
      <pubDate>Sat, 19 Sep 2026 10:10:00 +0800</pubDate>
      <guid>https://cfo580.cn/article/3e08ac76-412c-814b-8fdf-dfc52924d8be/</guid>
      <description>用 ser.str.replace 正则分组，把身份证中间 8 位生日替换成星号：^(.{6})(.{8})(.{4}) → \1******\3。</description>
    </item>
    <item>
      <title>📜 会计常用的 7 个 Python 脚本（清洗/账务/发票/报表）</title>
      <link>https://cfo580.cn/article/kuai-ji-chang-yong-de-7-ge-python-jiao-ben-qing-xi-zhang-wu-fa-piao-bao-biao/</link>
      <pubDate>Sat, 19 Sep 2026 10:09:00 +0800</pubDate>
      <guid>https://cfo580.cn/article/kuai-ji-chang-yong-de-7-ge-python-jiao-ben-qing-xi-zhang-wu-fa-piao-bao-biao/</guid>
      <description>这里整理了一份会计实务中最高频、最实用的 Python 脚本库。 这些脚本涵盖了从数据清洗、自动化报表、发票处理到可视化分析的全流程。你可以把这些脚本作为开发 AI 智能体时的“核心工具库”或“示例库”，当需要时直接调用或生成类似代码。 📂…</description>
    </item>
    <item>
      <title>🔪 Python/pandas 切片 Slicing：start:stop:step 与 iloc</title>
      <link>https://cfo580.cn/article/pythonpandas-qie-pian-slicingstartstopstep-yu-iloc/</link>
      <pubDate>Sat, 19 Sep 2026 10:08:00 +0800</pubDate>
      <guid>https://cfo580.cn/article/pythonpandas-qie-pian-slicingstartstopstep-yu-iloc/</guid>
      <description>切片（Slicing）是快速截取序列部分元素的语法，支持字符串、列表、元组，更核心的是适配 pandas 的 Series 和 DataFrame——对应 Excel 里“选中部分行/列”，但更灵活高效。 一、切片核心语法 核心格式：对象[…</description>
    </item>
    <item>
      <title>📘 Excel 入门学习目标：菜单、快捷键与常用函数</title>
      <link>https://cfo580.cn/article/excel-ru-men-xue-xi-mu-biao-cai-dan-kuai-jie-jian-yu-chang-yong-han-shu/</link>
      <pubDate>Sat, 19 Sep 2026 10:07:00 +0800</pubDate>
      <guid>https://cfo580.cn/article/excel-ru-men-xue-xi-mu-biao-cai-dan-kuai-jie-jian-yu-chang-yong-han-shu/</guid>
      <description>一、菜单栏与快捷键 入门先熟练菜单栏，再背高频快捷键。建议从最常用的 10 个开始（Ctrl+C/V、F2、F4 等）逐步扩展。 1. 基础操作 快捷键 功能 Ctrl+N / O / S / W / P 新建 / 打开 / 保存 / 关…</description>
    </item>
    <item>
      <title>♻️ Python 列表推导式：一行写完循环&#43;过滤</title>
      <link>https://cfo580.cn/article/python-lie-biao-tui-dao-shi-yi-xing-xie-wan-xun-huan-guo-lv/</link>
      <pubDate>Sat, 19 Sep 2026 10:06:00 +0800</pubDate>
      <guid>https://cfo580.cn/article/python-lie-biao-tui-dao-shi-yi-xing-xie-wan-xun-huan-guo-lv/</guid>
      <description>一、列表推导式是什么？ 列表推导式（List Comprehension）是 Python 中创建列表的简洁语法，本质是把「循环 + 条件判断 + 元素处理」浓缩成一行代码，比传统 for 循环 + append() 更高效、易读。 核心公…</description>
    </item>
    <item>
      <title>🐼 Pandas 常用方法是什么：一套数据处理工作流</title>
      <link>https://cfo580.cn/article/pandas-chang-yong-fang-fa-shi-shen-me-yi-tao-shu-ju-chu-li-gong-zuo-liu/</link>
      <pubDate>Sat, 19 Sep 2026 10:05:00 +0800</pubDate>
      <guid>https://cfo580.cn/article/pandas-chang-yong-fang-fa-shi-shen-me-yi-tao-shu-ju-chu-li-gong-zuo-liu/</guid>
      <description>✍️ 作者：CodeCrafter ｜ 来源：知乎 原文链接：https://www.zhihu.com/question/486515583/answer/1963287734132121742 著作权归原作者所有，转载仅供学习交流。 看…</description>
    </item>
    <item>
      <title>🔗 Python 用小括号包裹整段链式代码：隐式行连接</title>
      <link>https://cfo580.cn/article/python-yong-xiao-kuo-hao-bao-guo-zheng-duan-lian-shi-dai-ma-yin-shi-xing-lian-jie/</link>
      <pubDate>Sat, 19 Sep 2026 10:03:00 +0800</pubDate>
      <guid>https://cfo580.cn/article/python-yong-xiao-kuo-hao-bao-guo-zheng-duan-lian-shi-dai-ma-yin-shi-xing-lian-jie/</guid>
      <description>最外层那一对圆括号，既不是函数调用，也不是元组，而是 Python 里很实用的—— 隐式行连接括号。 作用一句话：让一条长链式表达式可以无视 Python 的“行尾即结束”规则，随意换行而不用加反斜杠 \。 举个对比就明白了： 两种写法在语…</description>
    </item>
    <item>
      <title>🧲Excel FILTER 函数超详细：语法、多条件与 20&#43; 实战公式</title>
      <link>https://cfo580.cn/article/excelfilter-han-shu-chao-xiang-xi-yu-fa-duo-tiao-jian-yu-20-shi-zhan-gong-shi/</link>
      <pubDate>Sat, 19 Sep 2026 10:02:00 +0800</pubDate>
      <guid>https://cfo580.cn/article/excelfilter-han-shu-chao-xiang-xi-yu-fa-duo-tiao-jian-yu-20-shi-zhan-gong-shi/</guid>
      <description>FILTER 是 Excel 365/2021+ 的动态数组筛选函数：按条件筛选区域，结果自动溢出，不用下拉复制。 一、语法 1. 被筛选区域（必选）：整表/区域，可多列； 2. 筛选条件（必选）：返回 TRUE/FALSE，支持多条件逻辑…</description>
    </item>
    <item>
      <title>🔐 Python with...as 上下文管理器（财会场景详解）</title>
      <link>https://cfo580.cn/article/pythonwithas-shang-xia-wen-guan-li-qi-cai-kuai-chang-jing-xiang-jie/</link>
      <pubDate>Sat, 19 Sep 2026 10:01:00 +0800</pubDate>
      <guid>https://cfo580.cn/article/pythonwithas-shang-xia-wen-guan-li-qi-cai-kuai-chang-jing-xiang-jie/</guid>
      <description>深入理解 Python 中的 with&amp;hellip;as&amp;hellip; 语法，这是处理文件、资源（比如 Excel 写入器、数据库连接）的核心语法。对财会场景来说，它最关键的价值是：安全、自动地管理资源（比如打开/关闭 Excel 文件、数据库连接），避免…</description>
    </item>
    <item>
      <title>🔲 Excel 取行列交叉单元格：LET&#43;XMATCH 找小计行×表头列</title>
      <link>https://cfo580.cn/article/excel-qu-hang-lie-jiao-cha-dan-yuan-ge-letxmatch-zhao-xiao-ji-xing-biao-tou-lie/</link>
      <pubDate>Sat, 19 Sep 2026 10:00:00 +0800</pubDate>
      <guid>https://cfo580.cn/article/excel-qu-hang-lie-jiao-cha-dan-yuan-ge-letxmatch-zhao-xiao-ji-xing-biao-tou-lie/</guid>
      <description>在一张表里，同时按“行关键字”（如小计行）和“列表头名”（如本月销售额）定位，取交叉单元格的值： r 即数据区域 A2:H18； 表头取区域第一行；用 SEARCH 找含“小计”的行号； BYCOL 逐列判断表头是否含“本月销售额”，XMA…</description>
    </item>
  </channel>
</rss>
