当前位置:网站首页>[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
边栏推荐
- Sigrity PowerSI Characteristic Impedance and Coupling Simulation
- 融云 x N 世界:构建无限用户实时交互的「元宇宙会场」
- JMeter notes 6 | JMeter recording agent (configuration)
- Substrate 源码更新导读八月第1周: 新版事务化存储层启用默认模式, Polkadot v0.9.27发布
- 在 C# 中如何检查参数是否为 null
- ABP 6.0.0-rc.1的新特性
- 智能工具管理系统
- kubernetes之helm简介、安装、配置
- AlphaControls 控件 TsPanel TsGroupBox 块与组的结合
- 记一次 .NET 某工控自动化控制系统 卡死分析
猜你喜欢
随机推荐
物联网的作用和发展方向
Volatile:JVM 我警告你,我的人你别乱动
华为云全流程护航《流浪方舟》破竹首发,打造口碑爆款
Jenkins使用pipeline部署服务到远程服务器
什么是硬件集成开发?硬件集成开发的核心有哪些?
Lagrange interpolation formula matlab implementation
论如何提升学习的能力
云服务的分类和应用
自学软件测试,学到什么程度可以出去找工作啊?
ceph2
Entry node of ring in leetcode/linked list
测试开发是什么,为什么现在这么吃香?
@AllArgsConstructor and @NoArgsConstructor
生产者-消费者线程模型学习
WPF 实现柱形统计图
【ROS2原理9】 QoS - 截止日期、活跃度和寿命
LeetCode 413.等差数列划分
Apache Doris Community PMC Yang Zhengguo: How do open source projects strike a balance between their own and the community's needs?
BSN季度版本2022年8月31日迭代更新预告
方舟单机/管理员特殊物品指令代码大全









