字符串里的引号问题

字符串里的引号问题



[Copy to clipboard] [ - ]
CODE:
mystr = "Jon 'Maddog' Orwant"  # literal single quote inside double quotes
mystr = 'Jon "Maddog" Orwant'  # literal double quote inside single quotes
#-----------------------------
mystr = 'Jon \'Maddog\' Orwant'  # escaped single quote
mystr = "Jon \"Maddog\" Orwant"  # escaped double quote

请问这几句话是一样的吗?
一样
1,3一样,2,4一样。因为中间的“和‘不一样。