[oeasy]python0051_ 转义_escape_字符_character_单引号_双引号_反引号_ 退格键
简介:
[oeasy]python0051_ 转义_escape_字符_character_单引号_双引号_反引号_ 退格键
转义字符
回忆上次内容
- 我们为什么会有八进制?
- 因为需要用八进制输出转义字符
- 比如输出
\n、\r等
- 那我想只输出
\这个字符可以吗?
\ 叫什么字符来着?🤔
转义字符
- 转义转义 转化含义
- escape character
- 可以将后面的字符转义

尝试

搜索结果

具体方法

输出一个反斜杠

转义字符的输出

多个\


总结
\a是 ␇ (bell)
\t是 水平制表符
\v是 换行不回车
\xhh
- 把(hh)16 进制对应的 ascii 字符输出
\ooo
- 把(ooo)8 进制对应的 ascii 字符输出

- 我们下次再说!👋
- 我们下次再说!👋
- 蓝桥->https://www.lanqiao.cn/courses/3584
- github->https://github.com/overmind1980/oeasy-python-tutorial
- gitee->https://gitee.com/overmind1980/oeasypython
- 视频->https://www.bilibili.com/video/BV1CU4y1Z7gQ 作者:oeasy