前言 使用python manage.py makemigrations时出现报错: from err django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module. Did you install mysqlcl ...
分类:
数据库 时间:
2020-06-25 19:32:03
阅读次数:
216
import React from "react"; import ReactDOM from "react-dom" import './index.css'; import * as serviceWorker from './serviceWorker'; //jsx 需要符合xml规范 // ...
分类:
Web程序 时间:
2020-06-25 19:17:10
阅读次数:
57
python 解释器: 1、Python 命令行参数 --官方文档:https://docs.python.org/zh-cn/3/using/cmdline.html#options-you-shouldn-t-use 2、在Windows上使用 Python :https://docs.pyth ...
分类:
编程语言 时间:
2020-06-25 19:13:29
阅读次数:
113
由于在ubuntu环境下,将python做与python3.6做了软链接(ln -s python python3.6),并且pip也被我做了软链接,所以导致用pip安装virtualenvwrapper之后,在source启动virtualenvwrapper.sh时以及workon 虚拟环境时总 ...
分类:
移动开发 时间:
2020-06-25 19:10:16
阅读次数:
77
已知p,q,e求d p=473398607161 q=4511491 e=17 n = (p-1) * (q-1) def extendedEuclid(a, b): if b == 0: return 1, 0 else: x, y= extendedEuclid(b, a % b) x, y = ...
分类:
其他好文 时间:
2020-06-25 19:08:44
阅读次数:
66
主要区别: 'app': 'C:\\Users\\del\\Desktop\\b\\jsq.apk', 安装了就不需要路径,没有安装就需要路径 一、系统未按装待测app # C:\Users\del>adb shell dumpsys window w |findstr \/ |findstr na ...
分类:
移动开发 时间:
2020-06-25 17:56:52
阅读次数:
109
python filecmp ilecmp可以实现文件,目录,遍历子目录的差异对比功能。 自带filecmp模块,无需安装。 常用方法说明 filecmp提供3个操作方法,cmp(单文件对比),cmpfile(多文件对比),dircmp(目录对比). 单文件对比,filecmp.cmp(f1,f2[ ...
分类:
编程语言 时间:
2020-06-25 17:55:51
阅读次数:
59
前言 在 django 的 User 表里面有个 is_active 字段可以判断用户是否是激活状态。 使用 authenticate 校验登录的时候 is_active 是不生效的。 authenticate 登录 create_user 创建新用户的时候 is_active 默认是1,也就是Tr ...
分类:
编程语言 时间:
2020-06-25 17:54:10
阅读次数:
69
time模块几个常用的时间函数 1、time()函数 返回当前时间的时间戳,从1970年1月1日00时00分00秒到现在的浮点秒数 time1 = time.time() 返回值:1593069205.7103553 类型:<class 'float'> 2、localtime([secs])函数 ...
分类:
编程语言 时间:
2020-06-25 17:49:42
阅读次数:
80
139. 单词拆分 题目来源:力扣(LeetCode)https://leetcode-cn.com/problems/word-break 题目 给定一个非空字符串 s 和一个包含非空单词列表的字典 wordDict,判定 s 是否可以被空格拆分为一个或多个在字典中出现的单词。 说明: 拆分时可以 ...
分类:
编程语言 时间:
2020-06-25 17:37:44
阅读次数:
67