学习笔记(07):Python 面试100讲(基于Python3.x)-你真的了解Python字符串吗

立即学习:https://edu.csdn.net/course/play/26755/340117?utm_source=blogtoedu

1、如何在字符串中显示单引号和双引号

   使用 \ 转义符

2、让转义符失效(3种方法)

   r、repr()和\

3、保持原始格式输出字符串

发布了26 篇原创文章 · 获赞 0 · 访问量 125

猜你喜欢

转载自blog.csdn.net/wuchuang19/article/details/104207377