“Spyder”的版本间差异
跳到导航
跳到搜索
无编辑摘要 |
无编辑摘要 |
||
(未显示同一用户的3个中间版本) | |||
第1行: | 第1行: | ||
==快捷键== |
|||
*执行某个文件 |
* F5 执行某个文件 |
||
runfile('/File/Path/hello.py', wdir=r'/File/Path') |
runfile('/File/Path/hello.py', wdir=r'/File/Path') |
||
* Ctrl+F5 debug模式运行某个文件 |
|||
* F9* executes the currently highlighted chunk of code; |
|||
* Ctrl+Enter 执行一个cell |
* Ctrl+Enter 执行一个cell |
||
runcell(0, '/home/shen/Omet_CEM/Omet_mu_SFH.py') |
runcell(0, '/home/shen/Omet_CEM/Omet_mu_SFH.py') |
||
:A cell is defined as the code between two lines which start with the characters #%%, # %% or # <codecell>. |
:A cell is defined as the code between two lines which start with the characters #%%, # %% or # <codecell>. |
||
* Ctrl-LeftMouseButton or Alt-G* on a function/method in the Editor opens a new Editor tab showing the definition of that function. |
|||
* Ctrl-I* when pressed while the cursor is on an object opens documentation for that object in the help pane. |
|||
* |
|||
==变量== |
==变量== |
2020年12月22日 (二) 15:27的最新版本
快捷键
- F5 执行某个文件
runfile('/File/Path/hello.py', wdir=r'/File/Path')
- Ctrl+F5 debug模式运行某个文件
- F9* executes the currently highlighted chunk of code;
- Ctrl+Enter 执行一个cell
runcell(0, '/home/shen/Omet_CEM/Omet_mu_SFH.py')
- A cell is defined as the code between two lines which start with the characters #%%, # %% or # <codecell>.
- Ctrl-LeftMouseButton or Alt-G* on a function/method in the Editor opens a new Editor tab showing the definition of that function.
- Ctrl-I* when pressed while the cursor is on an object opens documentation for that object in the help pane.
变量
- dir() 查看变量
- %reset 重置变量空间