print('hello "world"')
print("hello 'world'")
# 转义符
print('"hello" \'world\'')hello "world"hello 'world'"hello" 'world'print(r'Let \'s go!')Let \'s go!print('hello \nworld')
print(repr('hello \nworld'))hello world'hello \nworld'print('hello \\nworld')hello \nworldprint('''
hello
world
''') hello world[
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。