首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >Python编辑器中的单元模式?

Python编辑器中的单元模式?
EN

Stack Overflow用户
提问于 2018-02-07 01:30:39
回答 2查看 0关注 0票数 0

在MATLAB中,可以在两行之间执行一个代码区域,从%%开始使用Ctrl-Enter。这样的区域称为代码单元,它允许快速的代码测试和调试。

代码语言:javascript
复制
%% 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编辑器?

EN

Stack Overflow用户

发布于 2018-02-07 11:27:23

Spyder3定义了一个单元格作为所有行之间的代码#%%

用Ctrl+ 运行一个单元格,或者运行一个单元格并用Shift+

票数 0
EN
查看全部 2 条回答
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/-100007358

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档