📜  如何在python中附加到字符串 - 无论代码示例

📅  最后修改于: 2022-03-11 14:55:28.397000             🧑  作者: Mango

代码示例3
#include 
#include 

int main() {
  std::string sentence{"She"};
  sentence.append(" is playing");
  sentence += " the piano.";
}

Output:
She is playing the piano.