import smtplib import os from email.header import Header from email.mime.text import MIMEText # shenyuximr@163.com def sendemail(host,usernames,verify ...
分类:
编程语言 时间:
2021-05-24 04:25:15
阅读次数:
0
git回滚代码到某个commit 真好用😂 回退命令: $ git reset --hard HEAD^ 回退到上个版本 $ git reset --hard HEAD~3 回退到前3次提交之前,以此类推,回退到n次提交之前 $ git reset --hard commit_id 退到/进到 指 ...
分类:
其他好文 时间:
2021-05-24 04:22:50
阅读次数:
0
1. 配置 配置全局的用户名:git config --global user.name "zhangyang0514" 配置全局的邮箱 :git config --global use.email "18109230755@163.com" 查看当前配置 :git config --list 如下 ...
分类:
其他好文 时间:
2021-05-24 03:25:28
阅读次数:
0
直接上代码吧 中间件简单使用: # -*- coding: utf-8 -*- # Define here the models for your spider middleware # # See documentation in: # https://docs.scrapy.org/en/lat ...
分类:
其他好文 时间:
2021-05-24 03:01:58
阅读次数:
0
第一步:查看提交历史,查看想要回退版本的版本号 git log src/app.vue 第二步:回滚某个文件到指定版本 git checkout 版本号 src/app.vue 第三步:提交到本地仓库-拉取合并代码-提交到远程 git commit -m '提交描述' git pull git pu ...
分类:
其他好文 时间:
2021-05-24 02:15:14
阅读次数:
0
1、Ansible简介 定义:Ansible是一个开源部署工具 Ansible与Chef,Saltstack的不同: Chef Ruby语言编写,C/S架构,配置需要Git依赖,Recipe脚本编写规范,需要编程经验 Saltstack Python语言编写,C/S架构,模块化配置管理,YAML脚本 ...
分类:
其他好文 时间:
2021-05-24 02:10:44
阅读次数:
0
什么是Git? Git是目前世界上最先进的分布式版本控制系统(没有之一)。 Git 与 SVN 区别? **Git 是分布式的,SVN 不是。**这是 Git 和其它非分布式的版本控制系统,例如 SVN,CVS 等,最核心的区别。 **Git 把内容按元数据方式存储,而 SVN 是按文件。**所有的 ...
分类:
其他好文 时间:
2021-05-24 02:08:12
阅读次数:
0
前 如果你想在Spring Cloud Gateway中使用Sentinel Starter,你需要添加Spring - Cloud -alibaba- Sentinel - Gateway依赖,并添加Spring - Cloud - Starter - Gateway依赖,让Spring Clou ...
分类:
其他好文 时间:
2021-05-24 01:48:53
阅读次数:
0
1 # -*- coding:utf-8 -*- 2 #weather_api 3 import requests 4 import json 5 ''' 6 东城区:110101 7 西城区:110102 8 朝阳区:110105 9 丰台区:110106 10 ''' 11 12 def Wea ...
PS C:\ycm\test\ts-newProjet> git pull origin master * branch master -> FETCH_HEAD fatal: refusing to merge unrelated histories 在新建项目时报refusing to merg ...
分类:
其他好文 时间:
2021-05-24 01:24:52
阅读次数:
0