我需要一个字符串传递给程序从猛砸CLI它的参数,如 program "don't do this"
字符串可以包括像'$'任何字符,'\',等等,我不想猛砸做任何修改。所以我想用单引号。 但是以下不工作: program 'don\'t do this' //escape doesn't work in single quote
虽然下面的两件作品: program $'dont\'t
我在学习Python困难方式的exercise 8,我不明白为什么print函数中的某些行用单引号或双引号打印。 程序如下: formatter = "%r %r %r %r"
print formatter % (
"I had this thing.",
"That you could type up right.",
"But it didn't sing.",
"So I sai