当前位置:网站首页>[Pycharm easy to use function]
[Pycharm easy to use function]
2022-08-09 19:44:00 【stsdddd】
Pycharm useful features
Pycharm is a product of Jetbrains, one of the IDEs for Python
- Query and configuration of common shortcut keys: Settings -> Keymap
- Ctrl+D: Copy the current line
- Ctrl+Y: delete the current line
- Shift+Enter: fast line break
- Ctrl+/: Quick comment (multiple lines can be commented in batches)
- Tab: Indent the current line (multiple lines can be indented in batches)
- Shift+Tab: Cancel indentation (can cancel indentation in batches after selecting multiple lines
- Ctrl+F: Find
- Ctrl+R: Replace
- Ctrl+Minus: Collapse the current code block
- Ctrl+Shift+Minus: Collapse all code blocks in the current file
- When the number of images in the folder dataset is large, you can cancel the loading of the dataset and speed up the progress bar:
- When writing python code, I accidentally pressed the
Insert
key, and the cursor became thick.
Reason: Like word, when editing text or code, there are two modes: rewrite and insert mode. When we are editing articles or code, we should set the mode to insert mode.
Solution: Press the Insert key on the keyboard to switch
- Debug(
debug
)
Running from the command line You can use the Python debugger to run a script from the command line, for example:
python -m pdb my_script.py
This will trigger debugger
to stop execution at the first command line of the script.This can be helpful when the script is short.You can then view variable information through (Pdb) mode and debug line by line.
- Other python programming skills
In IPython, in the interactive interface, you can first import the module, then enter the module name+. and press the tab key to view the moduleWhat methods are there.
In the interactive interface, use the help()
function to view the specific usage of other functions
边栏推荐
猜你喜欢
随机推荐
【机器学习】回归树生成过程及举例理解
【燃】是时候展现真正的实力了!一文看懂2022华为开发者大赛技术亮点
kubernetes之helm简介、安装、配置
【代码审计】——PHP项目类RCE及文件包含下载删除
WPF效果第一百九十四篇之伸缩面板
How to choose a good SaaS knowledge base tool?
【.NET 6】开发minimal api以及依赖注入的实现和代码演示
开篇-开启全新的.NET现代应用开发体验
在 C# 中如何检查参数是否为 null
.NET静态代码织入——肉夹馍(Rougamo) 发布1.1.0
dotnet 6 为什么网络请求不跟随系统网络代理变化而动态切换代理
JVM内存模型和结构详解(五大模型图解)
2022小米运维开发笔试1
ABP详细教程——模块类
我不写单元测试,被批了
vr虚拟仿真样板间极大节省出样成本-深圳华锐视点
测试/开发程序员喜欢跳槽?跳了就能涨工资吗?
《ABP Framework 极速开发》 - 教程首发
国际土壤模型协会 International Soil Modeling Consortium-ISMC
在 ASP.NET Core 中上传文件