Python--Run Out This Mess
第一章
1.1 typora 的安装与使用
1.1.1 标题的创建:
方法一:用 ###+空格 表示标题,几个#就是几级标题
方法二:菜单栏——》段落——》选择标题
1.1.2 有序列表与无序列表
菜单栏——》段落——》可以选择有序列表or无序列表or任务列表
1.1.3 图片插入
方法一:拖拽和复制都可以添加图片
方法二:格式 --》 图像 按照规则插入图片
注意:图片仅限本地,如果需要给别人浏览,需要导出数据文件再发送给出去
1.1.4 表格
插入表格:菜单栏——》段落——》表格
注意:复制表格时,不建议鼠标点选,需在表格中找more action功能复制
1.1.5 插入链接
插入超链接:
方法一:菜单栏——》段落——》链接引用,根据提示输入相应的信息,用于引用
方法二:菜单栏——》格式——》超链接,l链接的URL要保证格式完整
方法三:手动输入英文状态下的也可以
1.1.6 常用按键
shift + tab 顶行,解除缩进问题
1.1.7 字体加颜色
更改字体与颜色
1.1.8 代码块
三个“```”添加代码块
print("哈哈哈")
1.1.9 更多具体语法与结构学习请查看一下链接
1.2 python的安装
安装的文件夹尽量靠近根目录,方便以后查找数据;
添加环境变量的目的:通过环境变量找到多版本的python,添加环境变量是为了给cmd快速识别使用;
1.3 pycharm安装
新建项目
file --》new project --》Pure Python --》Existing interpreter 选择打开 --》system interpreter 选择python版本的安装目录 --》选择python.exe点击OK
注意:python2.7环境下要输出汉字时要在开头添加#-*- coding:utf_8 -*-
1.4 Git的安装与使用
1.4.1下载安装
GIT官网下载合适的版本
安装直接点击下一步即可,安装完毕弹出小黑窗,输入git --version可以如果显示版本号说明安装成功。
1.4.2 注册码云
创建开源仓库
加入 老男孩Python全栈23期 / 19052823046 组织
1.4.3 Git与码云对接:
该步所用到的代码可以根据一下内容进行设置
Git 全局设置:
git config --global user.name "徐明宇" git config --global user.email "1247663186@qq.com"
创建 git 仓库:
mkdir 19052823046 cd 19052823046 git init #第一次初始化放代码的文件夹,确保此文件夹下生成.git文件夹,执行一次后此后都不需要再设置 touch README.md git add README.md #add添加动作后名词至本地git仓库 git commit -m "first commit" #要提交的数据,commit在git中表示 提交 操作,""里的内容表示本次操作的备注 git remote add origin https://gitee.com/old_boy_python_stack_23/19052823046.git git push -u origin master
已有仓库?
cd existing_git_repo git remote add origin https://gitee.com/old_boy_python_stack_23/19052823046.git git push -u origin master
步骤 创建新的文件夹(day01--)
--》 空白处右击
--》Git Bush Here
--》输入 git init 创建.git文件夹
--》输入 git add .把该文件夹内所有操作全部记录到
--》输入 git commit -m "备注信息",对刚才的add操作进行记录备注,在工作中要按照公司规定进行备注
--》要求输入user.name 和 user.email,把全局下两条命令分别输入到git里去,再运行git commit -m "frist commit"命令
--》继续往下输入 git remote add origin https://gitee.com/old_boy_python_stack_23/19052823046.git 和 git push -u origin master
--》输入注册时使用的邮箱账号和密码,登录即提交,不提交空文件。
操作历史记录
Aries@DESKTOP-8DM3AEF MINGW64 /d/mayungerencangku $ git init Initialized empty Git repository in D:/mayungerencangku/.git/ Aries@DESKTOP-8DM3AEF MINGW64 /d/mayungerencangku (master) $ git add . Aries@DESKTOP-8DM3AEF MINGW64 /d/mayungerencangku (master) $ git commit -m "frist commit" *** Please tell me who you are. Run git config --global user.email "you@example.com" git config --global user.name "Your Name" to set your account's default identity. Omit --global to set the identity only in this repository. fatal: unable to auto-detect email address (got 'Aries@DESKTOP-8DM3AEF.(none)') Aries@DESKTOP-8DM3AEF MINGW64 /d/mayungerencangku (master) $ git config --global user.name "徐明宇" Aries@DESKTOP-8DM3AEF MINGW64 /d/mayungerencangku (master) $ git config --global user.email "1247663186@qq.com" Aries@DESKTOP-8DM3AEF MINGW64 /d/mayungerencangku (master) $ git commit -m "frist commit" [master (root-commit) 66a955f] frist commit 1 file changed, 4 insertions(+) create mode 100644 2019-5-30.md Aries@DESKTOP-8DM3AEF MINGW64 /d/mayungerencangku (master) $ git remote add origin https://gitee.com/old_boy_python_stack_23/19052823046.git Aries@DESKTOP-8DM3AEF MINGW64 /d/mayungerencangku (master) $ git push -u origin master Enumerating objects: 3, done. Counting objects: 100% (3/3), done. Writing objects: 100% (3/3), 251 bytes | 251.00 KiB/s, done. Total 3 (delta 0), reused 0 (delta 0) remote: Powered By Gitee.com To https://gitee.com/old_boy_python_stack_23/19052823046.git - [new branch] master -> master Branch 'master' set up to track remote branch 'master' from 'origin'.
1.4.4 后续提交步骤
git add . --》 git commit -m "备注" --》git push -u origin master --》提交成功
注意:如果要删除云仓库的内容,不要直接在云仓库进行删除操作,要在本地进行,然后从本地提交即可。
如果在云端删除了文件,会发生与本地文件冲突错误,再提交文件时会提示报错,解决办法是git pull origin master 把远程的文件拉下来,解决冲突问题,再重新commit文件
1.5 码云仓库使用
仓库管理员在Issues里边下方要求或是任务,成员点击Issues进行评论,反应问题。
1.6 process on在线作图
1.7 博客园申请开通博客
- python mysql 2014 Commands out of sync; you can't run this command now
- python Commands out of sync; you can't run this command now
- python mysql 2014 Commands out of sync; you can't run this command now
- PHP执行MYSQL存储过程报错:Commands out of sync; you can't run this command now 问题的解决
- mysql 出现 Commands out of sync; you can't run this command now
- mysql: Commands out of sync; you can't run this command now
- _mysql_exceptions.ProgrammingError:(2014, "commands out of sync; you can't run this command now")
- 使用otl,报错:mysql Commands out of sync; you can't run this command now
- Commands out of sync; you can't run this command now
- Commands out of sync; you can't run this command now SQL
- PHP执行MYSQL存储过程报错:Commands out of sync; you can't run this command now
- 解决error:2014 Commands out of sync; you can't run this command now
- PHP执行MYSQL存储过程报错:Commands out of sync; you can't run this command now
- You are trying to run the Python 2 version of Beautiful Soup under Python 3. This will not work.
- error:2014 Commands out of sync; you can't run this command now
- error:2014 Commands out of sync; you can't run this command now
- 解决error:2014 Commands out of sync; you can't run this command now
- PHP+MySQL连续插入数据报错:Commands out of sync; you can't run this command now & 读取Excel数据并批量插入到数据中
- 解决error:2014 Commands out of sync; you can't run this command now
- MySQL问题一则:Commands out of sync; you can't run this command now以及相关问题