可以通过将代码括在匹配的“”之间来对整个代码块进行注释#{和#}或%{和%}’符号。例如
function quick_countdown
# Count down for main rocket engines
disp (3);
#{
disp (2);
disp (1);
#}
disp ("Blast Off!"); # Rocket leaves pad
endfunction
将返回一个非常快速的倒计时'3'到"Blast Off"软线disp (2);和disp (1);不会被处决。
块注释符号必须单独显示为一行中唯一的字符(空白字符除外),才能正确解析。
版权所有 © 2024-2025 Octave中文网
ICP备案/许可证号:黑ICP备2024030411号-2