>>> name = "a'b'c"
>>> print(name)
a'b'c
>>> name = 'a"b"c'
>>> print(name)
a"b"c
>>> name = "abc"
>>> print(name)
abc
>>> name = 'abc'
>>> print(name)
abc
>>>
# 支持换行输入
>>> name = """abc
... def
... g"""
# 查看变量值,之前的回车转成 /n 存储起来了
>>> name
'abc\ndef\ng'
# 输出值,跟之前输入的时候保持一致
>>> print(name)
abc
def
g
>>>
# 单三引号
>>> name = '''%(char)s def'''
>>> print(name % {'char': 'abc'})
abc def
# 挨着也没问题
>>> name = '''%(char)sdef'''
>>> print(name % {'char': 'abc'})
abcdef
# 双三引号
>>> name = """%(char)s def
... g"""
>>> print(name % {'char': 'abc'})
abc def
g