- 博客(94)
- 收藏
- 关注
原创 Updates were rejected because the remote contains work that you dohint: not have locally. This is us
error: failed to push some refs to ‘https://gitee.com/dongshuogit/XiaoGongJu.git’hint: Updates were rejected because the remote contains work that you dohint: not have locally. This is usually caused by another repository pushinghint: to the same ref. Y
2021-05-02 12:55:41
2460
原创 hint: Updates were rejected because the tip of your current branch is behind(github上的版本和本地版本冲突的解决方法)
勾选强制覆盖已有的分支(可能会丢失改动),再点击上传,上传成功。然后用这个git push -u origin master -f 强制覆盖已有的分支 解决!也可以参考下面这个:强制覆盖不可取!先pull远程仓库,再push即可git pull origin master --allow-unrelated-histories(该选项可以合并两个独立启动仓库的历史) git push -u origin master...
2021-05-02 12:54:13
818
原创 Anaconda建立新的环境,出现CondaHTTPError: HTTP 000 CONNECTION FAILED for url ...... 解决过程
所有https换成http就好了anaconda清华源使用帮助channels: - defaultsshow_channel_urls: truedefault_channels: - http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main - http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r - http://mirrors.tuna.tsinghua.edu.cn/ana
2021-04-22 12:36:59
229
原创 The server time zone value ‘?й???׼ʱ?‘ is unrecognized or represents more than one time zone. You
解决方案:show variables like '%time_zone%';set global time_zone='+8:00';
2021-04-05 20:54:07
133
原创 问题解决:Cause: java.lang.IllegalArgumentException: Result Maps collection already contains value for co
问题Error creating bean with name 'sqlSessionFactory' defined in class path resource [tk/mybatis/mapper/autoconfigure/MapperAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception isorg.springframework.beans.BeanInstanti
2021-03-31 21:54:54
648
原创 程序包javax.persistence不存在解决办法
maven添加<dependency> <groupId>javax.persistence</groupId> <artifactId>persistence-api</artifactId> <version>1.0.2</version></dependency>
2021-03-31 21:18:14
24974
2
原创 maven安装与配置,idea配置
maven下载下来安装然后修改maven配置文件然后在配置idea配置maven然后 修改 每次创建新项目默认配置如图所示-Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true-DarchetypeCatalog=local
2021-03-26 15:38:59
115
原创 node.js解构赋值
//数组的解构赋值;let [a,b,c] = [1,2,3];//let [a=111,b,c] = [,2,];console.log(a,b,c);//对象的解构赋值 let {foo,bar} = {foo:"hello",bar:"hi"};console.log(foo,bar);let {cos,sin,random} = Math;console.log(typeof cos);console.log(typeof sin);console.log(typeof ran
2021-03-15 21:21:05
392
原创 ES6 let与const
/*let与const*/let与var不同,let不存在预解析let声明的变量不允许重复(在同一个作用域内)let flag=123;let flag=456;以上错误ES6引入了块级作用域//块级作用域实例1:if(true){ //var flag = 123; let flag=123;}//块级作用域实例2:{let flag=111;consolg.log(flag);}//块级作用域实例3:for (let i=0;i<3;i++){ con
2021-03-15 19:55:26
69
原创 03.3 node.js模块化开发,引入与导出模块
03.js//03.js/* 模块化开发 传统非模块化开发有如下的缺点: 1、命名冲突 2、文件依赖 前端标准的模块化规范: 1、AMD - requirejs 2、CMD - seajs 服务器端的模块化规范: 1、CommonJS - Node.js 模块化相关的规则: 1、如何定义模块:一个js文件就是一个模块,模块内部的成员都是相互独立 2、模块成员的导出和引入 模块成员的导出最终
2021-03-12 16:47:17
118
原创 01.2 node.js全局成员概述
/* 全局成员概述*/// 包含文件名称的全路径console.log(__filename);// 文件的路径(不包含文件名称)console.log(__dirname);// 定时函数,用法与浏览器中的定时函数类似var timer = setTimeout(function(){ console.log(123);},1000);setTimeout(function(){ clearTimeout(timer);},2000);// 在Nod.
2021-03-12 16:40:24
119
原创 01.1初识Node.js
/* 初识Node.js*/console.log('hello tom and jerry');function sum(n){ var result = 0; for (var i = 0; i <= n; i++) { result += i; } return result;}var ret = sum(100);console.log(ret);function name(){ }
2021-03-12 16:38:19
63
原创 javascript与node.js
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Document</title> <script type="text/javascript"> /* 1、javascript本质上是什么?就是一门编程语言,解释执行的 2、浏览器的内核包括两部分核心:1、DOM渲染引擎;2、js解析器
2021-03-12 16:36:56
87
原创 01.初识Nodejs
初识NodejsJavaScript是什么?JavaScript可以运行在哪里?浏览器内核IETridentFireFoxGeckoChromeWebKitSafariWebKitOperaPrestoEdgeChakraNode.js的诞生作者Ryan Dahl 瑞恩·达尔2004 纽约 读数学博士2006 退学到智利 转向开发2009.5对外宣布node项目,年底js大会发表演讲2010 加入Joyent云计算公
2021-03-12 16:35:26
85
原创 flask出现405
@bp.route('/setu/')前端给这个路由发送post请求有可能出现405@bp.route('/setu/',methods=['GET','POST'])这样子就不会出现405了
2021-03-07 22:26:47
1449
原创 创建和启动django项目
命令行创建D:\django学习>django-admin startproject projiet1路径在哪个位置 例如:D:\django学习就会在哪里创建
2021-01-24 17:13:21
92
原创 python安装腾讯云对象存储sdk总是失败解决办法
腾讯云推荐的对象存储sdk安装:pip install -U cos-python-sdk-v5总是报错:ERROR: THESE PACKAGES DO NOT MATCH THE HASHES FROM THE REQUIREMENTS FILE. If you have updated the package versions, please update the hashes. Otherwise, examine the package contents carefully; someon
2021-01-23 17:07:31
787
原创 linux安装redis
https://www.runoob.com/redis/redis-install.html如果出现安装redis 未在src目录下找到redis-server那么https://blog.csdn.net/tv002/article/details/87882347?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.channel_param&depth_1-utm_sou
2020-11-16 18:50:18
1458
转载 2020-10-14
现在主流的Python web框架中,模板的表达式声明都大同小异,常见的有{{ something }}和{% something %}两类,而前者与Vue.js的语法冲突,导致在运行Python(例如Flask)时,Vue语法被Python解析触发报错。对于Flask,解决该问题的方式最简单的就是在Vue实例的DOM外,通过声明raw,表示其中的内容不由flask转义即可解决冲突:{% raw %}<div>{{vue}}</div>{% endraw %}.
2020-10-14 13:07:54
60
原创 nginx
nginx 配置文件位置/opt/tngx231/conf/nginx.confnginx位置/opt/tngx231/sbin启动进入 sbin输入./nginx 必须有./停止./nginx -s stop重启./nginx -s reload
2020-10-11 18:44:12
58
原创 text-align:center 不居中的解决办法
把行高设置为盒子的高度若 height:50px;则行高为line-height:50px;
2020-10-09 16:59:56
1742
原创 MySQL插入emoji表情错误的解决方案,Incorrect ‘\xF0\x9F\x98\x84
第一步 修改mysql的配置文件my.conf[client]# 客户端来源数据的默认字符集default-character-set = utf8mb4[mysqld]character-set-client-handshake = FALSE# 服务端默认字符集character-set-server=utf8mb4# 连接层默认字符集collation-server=utf8mb4_unicode_ciinit_connect=’SET NAMES utf8mb4'[mysql
2020-09-27 11:59:45
339
原创 NoneType 类型 之类的错误
我再用flask进行开发的时候使用 request.get_json()遇到了nonetype错误我的原因是 axios 首先进行了一次数据传输 button 按钮又进行了一次提交表单第一次axios提交过数据以后 get-json()get不到button提交的表单数据所以就报了 NoneType错误...
2020-09-27 10:49:32
576
转载 本地计算机上的mysql服务启动后停止。某些服务在未由其他服务或程序使用时将自动停止
错误原因一回想自己是否更改了 my.ini文件。回想自己是否更改过 MySQL 使用的文件夹的路径。去 my.ini 里看下里面使用的绝对路径是否正确。修改完后,保存配置,启动成功。
2020-09-27 10:44:29
227
转载 mysql -- 清空表中数据
删除表信息的方式有两种 :truncate table table_name;delete * from table_name;注 : truncate操作中的table可以省略,delete操作中的*可以省略truncate、delete 清空表数据的区别 :1> truncate 是整体删除 (速度较快),delete是逐条删除 (速度较慢)2> truncate 不写服务器 log,delete 写服务器 log,也就是 truncate 效率比 delete高的原因3>
2020-09-24 15:18:34
1122
原创 mysql修改字段长度命令
修改字段长度命令alter table 表名 modify column 列名 类型(要修改的长度);alter table post modify column img_url varchar(5000);
2020-09-24 15:16:33
759
原创 python 多进程编程(3) multiprocessing Pool 进程池
#实例化进程池,数字为进程池中最多几个进程 pick_pool = Pool(4)#开启三个进程 for i in range(3): #args中为参数 #apply_async使进程同时执行,apply使进程执行完一个再执行下一个 pick_pool.apply_async(pick_cat,args=("郭文辰",))全代码# 进程池from multiprocessing import Poolimport osimpo
2020-06-22 11:02:59
182
原创 python 多进程编程(2) multiprocessing 类实现子进程
写一个自己的进程类,继承Processrun中直接写写想要实现的子进程就可以了#使用类写子进程from multiprocessing import Processimport timeimport osclass MyProcess(Process): ###run中直接写写想要实现的子进程就可以了 def run(self): print("子进程的id %s" % os.getpid()) print("父进程的id %s" % os.ge
2020-06-22 11:00:21
168
原创 python 多进程编程(1) multiprocessing 函数方式实现子进程
使用multiprocessing库创建子进程from multiprocessing import Processimport timedef pick_cat(): print("捡了一只猫")if __name__ == "__main__": p = Process(target=jian_cat) p.start() while True: time.sleep(2)from multiprocessing import Proce
2020-06-22 10:58:44
334
原创 css依据网站中间线进行fixed定位
想要实现上图所示右侧悬浮栏效果在fixed定位下加上如下代码left:50%;margin-left:480px;
2020-06-14 23:18:11
98
原创 css fixed定位
html<div class="text">捡猫的博客</div>cssbody{ height:2000px;}.text{width:300px;height:100x;background:skyblue;position:fixed;right:0;bottom:100px;font-size:30px;color:white;text-align:center;line-height:100px}fixed定位的核心css代码为
2020-06-14 23:05:33
501
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人