docs: 移除C++相关文档内容
- 从导航栏中删除C++条目 - 删除C++学习笔记目录及其配置文件 - 清理Python字符串格式化文档中的冗余示例表格
This commit is contained in:
@@ -25,10 +25,6 @@ export default defineNavbarConfig([
|
|||||||
text: 'LeetCode',
|
text: 'LeetCode',
|
||||||
link: '/programming/leetcode/',
|
link: '/programming/leetcode/',
|
||||||
},
|
},
|
||||||
{
|
|
||||||
text: 'C++',
|
|
||||||
link: '/programming/cplusplus/',
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
text: 'Solidity',
|
text: 'Solidity',
|
||||||
link: '/programming/solidity/',
|
link: '/programming/solidity/',
|
||||||
|
|||||||
@@ -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({
|
const english = defineNoteConfig({
|
||||||
dir: 'subject',
|
dir: 'subject',
|
||||||
link: '/subject/english/',
|
link: '/subject/english/',
|
||||||
@@ -190,5 +178,5 @@ const web = defineNoteConfig({
|
|||||||
export default defineNotesConfig({
|
export default defineNotesConfig({
|
||||||
dir: 'notes',
|
dir: 'notes',
|
||||||
link: '/',
|
link: '/',
|
||||||
notes: [LeetCode, english, cPlusPlus, solidity, blockchain, linux, docker, cryptography, web],
|
notes: [LeetCode, english, solidity, blockchain, linux, docker, cryptography, web],
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -38,25 +38,6 @@ permalink: /archives/56ea3081-9c69-43d7-96c8-2812ec08be2c/
|
|||||||
- `%g`:%f 和 %e 的简写
|
- `%g`:%f 和 %e 的简写
|
||||||
- `%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 字符串格式化的代码示例:**
|
||||||
|
|
||||||
```python
|
```python
|
||||||
|
|||||||
@@ -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++的魅力所在!
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
---
|
|
||||||
title: C++ 简介与环境配置
|
|
||||||
createTime: 2025/09/22 09:06:00
|
|
||||||
permalink: /programming/cplusplus/basis/
|
|
||||||
---
|
|
||||||
|
|
||||||
## C++的简介
|
|
||||||
欢迎来到C++的奇妙世界~(๑>◡<๑) 如果你之前接触过C语言的话,那真是太棒啦!C++就像是C语言穿上了漂亮的新衣裳,不仅保留了原来的优点,还添加了面向对象和泛型编程的魔法哦~不过呢,可能需要稍微调整一下之前的编程习惯呢。就算你是第一次接触C++也完全不用担心,我会用最简单可爱的方式,带着你一步一步探索这个神奇的编程世界哒!
|
|
||||||
|
|
||||||
## 环境配置
|
|
||||||
Reference in New Issue
Block a user