1. 如果单个输出语句太长,不宜单行输出时:
Console.WriteLine("The gene makes a protein that assists the NMDA receptor, which plays an important role in long-term memory by helping to initiate LTP.");
2. 可以把这样的长语句分作多个字符串,然后用加号把它们连接起来,这样可以使程序易于阅读:
Console.WriteLine("The gene makes a protein that assists the NMDA receptor“+” which plays an important role in long-term memory“+” by helping to initiate LTP.”)
|