我正在编写一段代码,其中需要向用户请求输入。然而,用于提示用户的字符串有些长,在使用该代码时,它们都被写在命令行窗口的同一行上。我希望将其分散到多行。我的代码是:
n = input(['The matrix is diagonally dominant. Please choose which method you wish to'...
' use: 1 (Gaussian elimination), 2 (Jacobi iterations),'...
' 3 (Gauss-Seidel iterations). If you enter any other number'...
' Gaussian elimination will automatically be used: ']);
如果可以的话,我希望像代码中那样将其显示在4行上。我该如何实现?