猫史档案馆


【Python作品分享】转义字符 记得看代码【教程贴】

用户:structstruct查看:0 回复:0 评论:0 创建时间:2022-05-22T20:19:22


【作品展示】

center_image

 

【作品介绍】

没有操作,代码学着点吧。

 

【作品源代码】

# 分行
print('hello\nworld')
# 空格
print('hello\tworld')
# 覆盖
print('hello\rworld')
# 退格
print('hello\bworld')
# 网站
print('https://shequ.codemao.cn/work/146638207')
# 原字符,不希望句中的转义字符起作用的时候用
print(r'hello\nworld')

 

【提示】

部分含有Python第三方库相关内容的作品,在海龟编辑器网页端无法运行哦!如遇到这种情况,可以打开下面的链接,下载海龟编辑器客户端:

https://python.codemao.cn


回复

上一页1 页 / 共 0下一页