以下是以若写日记名“python的debug方法”为例。
日记访问url组成如下:
2017/11/06/python-e7-9a-84debug-e6-96-b9-e6-b3-95/
日记名称转换方法如下:
1)使用python命令行,把把日记名称”python的debug方法“转换编码1
2>>> urllib.parse.quote('python的debug方法')
'python%E7%9A%84debug%E6%96%B9%E6%B3%95
2)注意把结果中的%号全部替换成-
在vim中可以使用快捷命令:%s/%/-/g
结果如下:
python-E7-9A-84debug-E6-96-B9-E6-B3-95
日记的标准模板如下:1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16---
title: python的debug方法
tags:
- debug
- ide
- idle
- pdb模块
- python
- 命令行
- 断点调试
#id: 190
categories:
- python
- 开发语言
date: 2017-11-06 16:52:27
---
然后,就写日记的内容吧。
content
岁月当歌,人生几何。