这个片段:
formatter = "%r %r %r %r"
print formatter % (
"I had this thing.",
"That you could type up right.",
"But it didn't sing.",
"So I said goodnight."
)
运行时,打印此字符串:
'I had this thing.' 'That you could type up right.' "But it didn't sing." 'So I said goodnight.'
当其他三个项目在单引号中时,为什么"But it didn't sing."
会被放在双引号中?