我以为我知道不同类型的 Python 引用意味着什么,但对这个例子有点困惑:
my_string = 'the cat sat on the mat'
my_string = "the cat sat on the mat"
my_string = """the cat sat on the mat"""
my_string = '''the cat sat on the mat'''
前两个似乎是使用单引号或双引号声明字符串的两种不同方式。最后两个似乎是使表达式不完整的注释(并且会在解释器中产生错误。对吗?