pycharm使用教程
pycharm进行debug 进行debug前需要设置断点,然后选择debug运行代码。但代码运行到设置了断点的行时,会暂停,并输出相当的信息。
文章图片
- step over 执行完本行代码后准备执行下一行代码,即使本行存在函数
- step into 如果本行存在函数,则进入函数中执行代码(再行数中的代码执行也分step in step over),然后再执行本行。
![pycharm使用教程](https://img.it610.com/image/info8/a5e61edf256143a8863bceca033f032b.gif)
文章图片
3. step into mycode 效果和step into基本一样,但如果函数来自其他脚本则不进入函数变为step over的效果
4. 修改变量值观察运行,鼠标在varables窗口中欲修改的变量,按f2修改。
![pycharm使用教程](https://img.it610.com/image/info8/0351e368cec545f18b4cd800569caea9.gif)
文章图片
pycharm使用git 一、pycharm设置使用git和github
![pycharm使用教程](https://img.it610.com/image/info8/f7ededdb9c2f449d9323972ad7590338.jpg)
文章图片
![pycharm使用教程](https://img.it610.com/image/info8/0bb7e690e9054cd287655450d6a11f37.jpg)
文章图片
![pycharm使用教程](https://img.it610.com/image/info8/4b42499dcee14fb397bd80019b414b5f.jpg)
文章图片
二、pycharm中文件颜色区分
新建未add的文件颜色是红色的
![pycharm使用教程](https://img.it610.com/image/info8/4a142ef3ad9e42a886ec0386683686e0.jpg)
文章图片
add之后是绿色的
![pycharm使用教程](https://img.it610.com/image/info8/50ebbd08602a45bfbae500ec234f9899.jpg)
文章图片
做过修改是蓝色的
![pycharm使用教程](https://img.it610.com/image/info8/c33b45ce8ee04836bfae1dd004b5a34c.jpg)
文章图片
忽略的文件是灰黄色的
![pycharm使用教程](https://img.it610.com/image/info8/0b9bd980b30e44fb88e41a8da4544ea3.jpg)
文章图片
三、创建github上仓库
1、先本地创建git仓库
![pycharm使用教程](https://img.it610.com/image/info8/ed3d80c5580d458cb4312ddb9cff8a26.jpg)
文章图片
会弹窗询问是否在指定目录进行git init操作
![pycharm使用教程](https://img.it610.com/image/info8/d80a6cb46b104fce86f54abbfc1e5b36.jpg)
文章图片
2、共享仓库至github上
![pycharm使用教程](https://img.it610.com/image/info8/d7c4195009da406aa996231e1b41dc45.jpg)
文章图片
![pycharm使用教程](https://img.it610.com/image/info8/8b70b317ac624565aa043c063c137fc1.jpg)
文章图片
这样操作过后本地和github上有一对建立关联的代码仓库了
四、提交代码至github
注意一定要设置git 忽略的文件和目录
在git的目录中新建文件.gitignore,在文件中写忽略的文件和目录
MacBook-Pro-8:p2p-tranfser kesheng$ cat .gitignore
.idea/
venv/
ignore/
【pycharm使用教程】
右键目录,先进行再commit提交至本地git仓库
![pycharm使用教程](https://img.it610.com/image/info8/0bd2c2f8a12e45c7ab1a92b148ccbb6d.jpg)
文章图片
需要填写commit message作为变动的注释
![pycharm使用教程](https://img.it610.com/image/info8/341bf2c6be12435d943f0a7b348c8ca9.jpg)
文章图片
将本地git仓库push至git hub上
![pycharm使用教程](https://img.it610.com/image/info8/59a7a564ddb840aa8bcf09d11301666d.jpg)
文章图片
选择push到github上的哪个分支,建议dev不要master
![pycharm使用教程](https://img.it610.com/image/info8/7ea596f0bae4465e86dec1e5fd5576ce.jpg)
文章图片
五、克隆github上代码至本地
![pycharm使用教程](https://img.it610.com/image/info8/92ffbee181ca4ac481eeddcc6ea7e331.jpg)
文章图片
![pycharm使用教程](https://img.it610.com/image/info8/f04483b4f88443e8abdc986f9cac3f3a.jpg)
文章图片
推荐阅读
- 2.6|2.6 Photoshop操作步骤的撤消和重做 [Ps教程]
- 由浅入深理解AOP
- 【译】20个更有效地使用谷歌搜索的技巧
- mybatisplus如何在xml的连表查询中使用queryWrapper
- MybatisPlus|MybatisPlus LambdaQueryWrapper使用int默认值的坑及解决
- MybatisPlus使用queryWrapper如何实现复杂查询
- 漫画初学者如何学习漫画背景的透视画法(这篇教程请收藏好了!)
- iOS中的Block
- Linux下面如何查看tomcat已经使用多少线程
- 使用composer自动加载类文件