用print()输出'hello \n world'
来源:3-10 转义字符
baby猫
2017-09-22
用print()输出'hello \n world' ,写成print('hello \\n world'),在\n前面再加个反斜杠,把\转义为普通字符输出,后面的n原样输出,可以这样理解吗?
写回答
1回答
-
可以这样理解。
012017-09-22
相似问题
用print()输出'hello \n world'
来源:3-10 转义字符
baby猫
2017-09-22
用print()输出'hello \n world' ,写成print('hello \\n world'),在\n前面再加个反斜杠,把\转义为普通字符输出,后面的n原样输出,可以这样理解吗?
1回答
可以这样理解。
相似问题