Windows环境 Git提交代码到Github(附:python 读写Excel文件Demo)

目录

  • Git提交代码常用命令
  • python 读写Excel文件Demo

一、Git常用命令

  1. git clone #从远程仓库克隆整个项目代码

    《Windows环境 Git提交代码到Github(附:python 读写Excel文件Demo)》

  2. git status #列出当前目录所有还没有被git管理的文件和被git管理且被修改但还未提交的文件
    《Windows环境 Git提交代码到Github(附:python 读写Excel文件Demo)》
  3. git add . #提交全部未跟踪和修改文件,但是不处理删除文件

    《Windows环境 Git提交代码到Github(附:python 读写Excel文件Demo)》

  4. git commit -m “message” #将暂存区里的改动给提交到本地的版本库 -m 参数表示可以直接输入后面的”message”,如果不加 -m参数,那么是不能直接输入message的,而是会调用一个编辑器一般是vim来让你输入这个message

    《Windows环境 Git提交代码到Github(附:python 读写Excel文件Demo)》

  5. git push #将本地分支上传到远程分支

    《Windows环境 Git提交代码到Github(附:python 读写Excel文件Demo)》

注:此时已经把我们的代码已经提交到远程仓库,后续还会提到企业办公中git常用命令的使用。

2.python 读写Excel文件Demo

  • Pandas处理Excel数据
    1.pandas依赖处理Excel的xlrd模块,安装命令是:pip install xlrd
    2.安装pandas,安装命令是:pip install pandas

    《Windows环境 Git提交代码到Github(附:python 读写Excel文件Demo)》

  • Xlsxwriter模块的使用
    1.Xlsxwriter模块主要用来生成Excel表格,插入数据、插入图标等表格操作
    2.安装Xlsxwriter,安装命令是:pip install xlsxwriter

    《Windows环境 Git提交代码到Github(附:python 读写Excel文件Demo)》

    《Windows环境 Git提交代码到Github(附:python 读写Excel文件Demo)》

    《Windows环境 Git提交代码到Github(附:python 读写Excel文件Demo)》

  • requests调用有道翻译接口
    1.requests 是一个功能强大、简单易用的 HTTP 请求库,可以使用 pip install requests 命令进行安装
    2.lxml是python的一个解析库,支持HTML和XML的解析,支持XPath解析方式,而且解析效率非常高,可以使用pip install lxml命令进行安装

    《Windows环境 Git提交代码到Github(附:python 读写Excel文件Demo)》

Github源码地址: ExcelHandle

    原文作者:一生宿命
    原文地址: https://segmentfault.com/a/1190000019654890
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞