当前位置:网站首页>[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
Insertkey, 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.pyThis 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
边栏推荐
猜你喜欢
随机推荐
郭炜(郭大侠):九个关于开源的 Yes or No
MASA Stack 第三期社区例会
LINE Verda Programming Contest (AtCoder Beginner Contest 263) A~E 题解
MySQL的索引你了解吗
方舟:生存进化开服务器端口映射教程
ceph部署
方舟单机/管理员特殊物品指令代码大全
.NET 6学习笔记(4)——解决VS2022中Nullable警告
Jenkins使用pipeline部署服务到远程服务器
PGSQL backup tool, which is better?
开篇-开启全新的.NET现代应用开发体验
openEuler Xiong Wei: How do you view the SIG organization model in the open source community?
价值10亿美元 美国向乌克兰提供单次最大规模安全援助
AlphaControls 控件 TsPanel TsGroupBox 块与组的结合
一键生成 API 文档的妙招
在 .NET MAUI 中如何更好地自定义控件
MySQL索引的B+树到底有多高?
Prometheus完整安装
Installation and use of Lombok plugin in IDEA
Redis 定长队列的探索和实践









