在MATLAB中,可以在两行之间执行一个代码区域,从%%
开始使用Ctrl-Enter
。这样的区域称为代码单元,它允许快速的代码测试和调试。
如
%% This is the beginning of the 1st cell
a = 5;
%% This is the end of the 1st cell and beginning of the 2nd cell
% This is just a comment
b = 6;
%% This is the end of the 2nd cell
有没有支持类似功能的Python编辑器?
发布于 2018-02-07 11:27:23
Spyder3定义了一个单元格作为所有行之间的代码#%%
。
用Ctrl+ 运行一个单元格,或者运行一个单元格并用Shift+
https://stackoverflow.com/questions/-100007358
复制相似问题