原因:pip版本过低导致安装第三方库失败。 解决办法:更新pip版本 方案一:执行命令easy_install -U pip 方案二:若方案一失败,则可采用使用国内源下载更新。执行命令:python -m pip install --upgrade pip -i https://pypi.douba ...
分类:
编程语言 时间:
2020-05-28 23:47:43
阅读次数:
1267
1. scanner 1.1 scan 从标准输入读取输入,将空格分隔的值依次存放到后续的参数内,换行符不会结束读取,读取变量个数个输入后读取结束 var id int var name string var age int fmt.Println("please input you info !" ...
分类:
其他好文 时间:
2020-05-28 16:14:44
阅读次数:
94
1. 导入 django user 表继承类 :AbstractUser from django.db import models # Create your models here. #引入django自带的user表,方便下方继承 from django.contrib.auth.models ...
分类:
其他好文 时间:
2020-05-28 11:37:26
阅读次数:
117
''' 1. 编写程序实现:计算并输出标准输入的三个数中绝对值最小的数。 ''' #计算并输出标准输入的三个数中绝对值最小的数。 import math num1 = int(input()) num2 = int(input()) num3 = int(input()) num_list = (n ...
分类:
其他好文 时间:
2020-05-28 10:26:31
阅读次数:
155
1. 安装 apt-get install mysql-server即可 版本是5.7.30 2. 运行 service mysql start (需要注意,一定要有/etc/mysql目录的存在,不然可能只看到出错,但没有日志) 3. 登录 初始密码是在/etc/mysql/debian.cnf中 ...
分类:
数据库 时间:
2020-05-28 00:50:49
阅读次数:
95
自从 HTML5 诞生之后,关于 Web App 和 Native App 的讨论就从未间断过,孰优孰劣大家各执一词。但作为前端开发者的我们,心里其实是明白的,这个世界是你们的(Native App),也是我们(Web App)的,但终究还是我们的,如果几十年后再回头看这一路的话,会发现你们不过是一 ...
分类:
移动开发 时间:
2020-05-28 00:40:03
阅读次数:
126
可能你插入字段为关键字时报如下错误,且字段名不适合改变 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax ...
分类:
数据库 时间:
2020-05-27 18:58:19
阅读次数:
803
题目 A traveler's map gives the distances between cities along the highways, together with the cost of each highway. Now you are supposed to write a pro ...
分类:
Web程序 时间:
2020-05-27 18:35:42
阅读次数:
73
题面 time limit per test: 2 seconds memory limit per test: 256 megabytes Description You've been in love with Coronavirus-chan for a long time, but you ...
分类:
其他好文 时间:
2020-05-27 12:11:53
阅读次数:
91
一,为什么要使用路由懒加载 为给客户更好的客户体验,首屏组件加载速度更快一些,解决白屏问题 二,懒加载简单来说就是延迟加载或按需加载,即在需要的时候的时候进行加载 三,常用的懒加载方式有两种:即使用vue异步组件 和 ES6中的import 1、未用懒加载,vue中路由代码如下 1 import V ...
分类:
其他好文 时间:
2020-05-26 22:16:06
阅读次数:
92