立即学习:https://edu.csdn.net/course/play/26755/340117?utm_source=blogtoedu
1、如何在字符串中同时输出单引号和双引号
print('hello "world"')
print("hello 'world'")
print('"hello" \'world\'')
2、如何让转义符失效(3种方法:r、repr和、)
print(r'let \'s go')
print(repr('hello\nworld'))
print('hello\\nworld')
3、保持原始格式输出字符串
print("""
hello
world
i love you
""")