37,719
社区成员
发帖
与我相关
我的任务
分享
>>> 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.'
>>> print (formatter % ("I had this thing.",
"That you could type up right.",
"But it did not sing.",
"So I said goodnight."
))
'I had this thing.' 'That you could type up right.' 'But it did not sing.' 'So I said goodnight.'