Python 语言中,使用 """ 可以创建多行字符串,所以我们可以使用以下代码输出:
print("""West wind blows dreams to the river's edge, broken souls fade, fallen flowers drift. Remembering reunions, flowing waters resent the spring tides. Only the green lamp recalls, as people leave, cherishing the flowery morning.
Now cease to speak of the old bridge, who would depict, a few flute notes. A tune of parting sentiment, under the moon's dark midnight. At this moment, countless threads of longing, in the clear night, the sound of the dripping water is distant.""")
C++ 语言中,使用 \n 表示字符串换行符,所以我们可以使用以下代码输出:
#include<bits/stdc++.h>
using namespace std;
int main(){
cout<<"West wind blows dreams to the river's edge, broken souls fade, fallen flowers drift. Remembering reunions, flowing waters resent the spring tides. Only the green lamp recalls, as people leave, cherishing the flowery morning.\nNow cease to speak of the old bridge, who would depict, a few flute notes. A tune of parting sentiment, under the moon's dark midnight. At this moment, countless threads of longing, in the clear night, the sound of the dripping water is distant.";
return 0;
}
暂无评论