From 4e803828b8c201d27bf083a5d6826941212242c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A5=80=E6=A2=A6?= <3501646051@qq.com> Date: Fri, 27 Feb 2026 00:33:23 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E7=A7=BB=E9=99=A4C++=E7=9B=B8=E5=85=B3?= =?UTF-8?q?=E6=96=87=E6=A1=A3=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 从导航栏中删除C++条目 - 删除C++学习笔记目录及其配置文件 - 清理Python字符串格式化文档中的冗余示例表格 --- docs/.vuepress/navbar.ts | 4 -- docs/.vuepress/notes.ts | 14 +----- docs/blog/technology/python_string_format.md | 19 -------- docs/notes/programming/c++/README.md | 49 -------------------- docs/notes/programming/c++/basis.md | 10 ---- 5 files changed, 1 insertion(+), 95 deletions(-) delete mode 100644 docs/notes/programming/c++/README.md delete mode 100644 docs/notes/programming/c++/basis.md diff --git a/docs/.vuepress/navbar.ts b/docs/.vuepress/navbar.ts index 435271a..0c055a1 100644 --- a/docs/.vuepress/navbar.ts +++ b/docs/.vuepress/navbar.ts @@ -25,10 +25,6 @@ export default defineNavbarConfig([ text: 'LeetCode', link: '/programming/leetcode/', }, - { - text: 'C++', - link: '/programming/cplusplus/', - }, { text: 'Solidity', link: '/programming/solidity/', diff --git a/docs/.vuepress/notes.ts b/docs/.vuepress/notes.ts index 915dea5..f88e2a8 100644 --- a/docs/.vuepress/notes.ts +++ b/docs/.vuepress/notes.ts @@ -15,18 +15,6 @@ const LeetCode = defineNoteConfig({ } ] }) -const cPlusPlus = defineNoteConfig({ - dir: 'programming', - link: '/programming/cplusplus/', - sidebar: [ - { text: "C++ 学习笔记", link: "/programming/cplusplus/" }, - { - text: "基础配置与开发工具", prefix: "/basis", items: [ - { text: "C++ 环境配置", link: "/programming/cplusplus/basis/" } - ] - } - ] -}) const english = defineNoteConfig({ dir: 'subject', link: '/subject/english/', @@ -190,5 +178,5 @@ const web = defineNoteConfig({ export default defineNotesConfig({ dir: 'notes', link: '/', - notes: [LeetCode, english, cPlusPlus, solidity, blockchain, linux, docker, cryptography, web], + notes: [LeetCode, english, solidity, blockchain, linux, docker, cryptography, web], }) diff --git a/docs/blog/technology/python_string_format.md b/docs/blog/technology/python_string_format.md index f6cf679..f2f80ec 100644 --- a/docs/blog/technology/python_string_format.md +++ b/docs/blog/technology/python_string_format.md @@ -38,25 +38,6 @@ permalink: /archives/56ea3081-9c69-43d7-96c8-2812ec08be2c/ - `%g`:%f 和 %e 的简写 - `%G`:%f 和 %E 的简写 -**Python 数字格式化示例:** - -| 数字 | 格式 | 输出 | 描述 | -| :--- | :--- | :--- | :--- | -| 3.1415926 | `{:.2f}` | 3.14 | 保留小数点后两位 | -| 3.1415926 | `{:+.2f}` | +3.14 | 带符号保留小数点后两位 | -| -1 | `{:+.2f}` | -1.00 | 带符号保留小数点后两位 | -| 2.71828 | `{:.0f}` | 3 | 不带小数 | -| 5 | `{:0>2d}` | 05 | 数字补0(填充左边,宽度为2) | -| 5 | `{:x<4d}` | 5xxx | 数字补x(填充右边,宽度为4) | -| 10 | `{:x<4d}` | 10xx | 数字补x(填充右边,宽度为4) | -| 1000000 | `{:,}` | 1,000,000 | 以逗号分隔的数字格式 | -| 0.25 | `{:.2%}` | 25.00% | 百分比格式 | -| 1000000000 | `{:.2e}` | 1.00e+09 | 指数记法 | -| 13 | `{:>10d}` | 13 | 右对齐(默认,宽度为10) | -| 13 | `{:<10d}` | 13 | 右对齐(宽度为10) | -| 13 | `{:^10d}` | 13 | 中间对齐(宽度为10) | -| 11 | `'{:b}' '{:d}' '{:o}' '{:x}''{:#x}' '{:#X}'` | 1011 11 13 b0xb 0XB | 进制 | - **Python 字符串格式化的代码示例:** ```python diff --git a/docs/notes/programming/c++/README.md b/docs/notes/programming/c++/README.md deleted file mode 100644 index cecfc63..0000000 --- a/docs/notes/programming/c++/README.md +++ /dev/null @@ -1,49 +0,0 @@ ---- -title: C++ 学习笔记 -description: 记录C++编程语言的学习心得和基础知识 -createTime: 2025/09/22 09:00:00 -permalink: /programming/cplusplus/ ---- - -# C++ 学习笔记 - -这里是我在学习C++编程语言过程中记录的学习心得、基础知识和实战经验。通过整理这些笔记,希望能够帮助自己和他人更好地掌握C++这门强大的编程语言。 - -## 学习路径 - -C++是一门复杂而强大的编程语言,学习路径建议如下: - -1. **基础语法** - 掌握C++的基本语法和编程概念 -2. **面向对象编程** - 学习C++的类、继承、多态等OOP特性 -3. **STL标准库** - 熟悉常用的容器和算法 -4. **高级特性** - 模板、异常处理、智能指针等 -5. **实战项目** - 通过实际项目巩固所学知识 - -## 笔记分类 - -### 基础语法 - -- 数据类型 -- 运算符和表达式 -- 控制流语句 -- 函数 - -### 面向对象编程 - -- 类和对象 -- 继承与多态 -- 封装与抽象 -- 构造函数与析构函数 - -### STL标准库 - -- 容器(vector, list, map等) -- 迭代器 -- 算法 -- 函数对象 - -## 学习资源推荐 - -- [C++ Primer Plus:中文版(第六版)](https://101su.ru/book/5442395/430bc1/c-primer-plus%E4%B8%AD%E6%96%87%E7%89%88%E7%AC%AC%E5%85%AD%E7%89%88.html) - 很好的C++入门教材 - -开始你的C++学习之旅吧!坚持学习,你会发现C++的魅力所在! diff --git a/docs/notes/programming/c++/basis.md b/docs/notes/programming/c++/basis.md deleted file mode 100644 index 8532198..0000000 --- a/docs/notes/programming/c++/basis.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -title: C++ 简介与环境配置 -createTime: 2025/09/22 09:06:00 -permalink: /programming/cplusplus/basis/ ---- - -## C++的简介 -欢迎来到C++的奇妙世界~(๑>◡<๑) 如果你之前接触过C语言的话,那真是太棒啦!C++就像是C语言穿上了漂亮的新衣裳,不仅保留了原来的优点,还添加了面向对象和泛型编程的魔法哦~不过呢,可能需要稍微调整一下之前的编程习惯呢。就算你是第一次接触C++也完全不用担心,我会用最简单可爱的方式,带着你一步一步探索这个神奇的编程世界哒! - -## 环境配置