作者热门文章
- c - 在位数组中找到第一个零
- linux - Unix 显示有关匹配两种模式之一的文件的信息
- 正则表达式替换多个文件
- linux - 隐藏来自 xtrace 的命令
>> print "\"foo\bar" "foar 最佳答案 参见 -6ren">
python中反斜杠b的作用是什么?我在 Python 解释器中运行了 print "\"foo\bar"
并得到了这个结果:
>>> print "\"foo\bar"
"foar
最佳答案
参见 string literal documentation :
\b
ASCII Backspace (BS)
它产生一个 backspace character .打印该字符时,您的终端在第二个 o
上退格。
关于python - 反斜杠 b 在 Python 中有什么作用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25065608/
我是一名优秀的程序员,十分优秀!