小陆同学

python 中文名:蟒蛇,设计者:Guido van Rossum

导航

上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 23 下一页

2020年9月26日 #

ModuleNotFoundError: No module named 'aliyunsdkcore'

摘要: pip3 install aliyun-python-sdk-core pip3 install aliyun-python-sdk-ecs 阅读全文

posted @ 2020-09-26 14:27 小陆同学 阅读(4312) 评论(0) 推荐(0) 编辑

linux--安装zbar,亲测有效

摘要: 什么是ZBar?ZBar是一个开源库,用于扫描、读取二维码和条形码。支持的二维码包括:EAN/UPC,QR等。 ubuntu16.04安装方式 sudo apt-get install libzbar-dev pip install zbar # 亲测有效 centos7 安装方式 yum inst 阅读全文

posted @ 2020-09-26 14:26 小陆同学 阅读(2724) 评论(0) 推荐(0) 编辑

django--xadmin展示一对多关联信息

摘要: xadmin:是django的一套优于admin的后台管理系统,不仅提供了可观性更高的UI界面,还封装了基于模型类的CURD,支持过滤查询,多种形式的数据导出,还有很多方便易用的小插件。它的缺点是,如果有一些自定义的功能,页面展示部分和权限控制部分可能需要改底层代码,不是特别方便我的场景是,一对多的 阅读全文

posted @ 2020-09-26 14:22 小陆同学 阅读(948) 评论(0) 推荐(0) 编辑

django--orm models 字段类型说明

摘要: 1、models.AutoField 自增列 = int(11) 如果没有的话,默认会生成一个名称为 id 的列,如果要显示的自定义一个自增列,必须将给列设置为主键 primary_key=True。2、models.CharField 字符串字段 单行输入,用于较短的字符串,如要保存大量文本, 使 阅读全文

posted @ 2020-09-26 13:53 小陆同学 阅读(379) 评论(0) 推荐(0) 编辑

2020年8月28日 #

vue--webpack版本过高问题

摘要: 问题: 项目可以启动没有问题,访问页面白页加载不到东西 BaseClient.js:23 Uncaught TypeError: Cannot assign to read only property 'exports' of object '#<Object>' 解决办法:https://www. 阅读全文

posted @ 2020-08-28 21:43 小陆同学 阅读(843) 评论(1) 推荐(0) 编辑

python--随机生成8为大小写字母数字组成的密码

摘要: import random,string #调用random、string模块 def create_password(): src_digits = string.digits #string_数字 src_uppercase = string.ascii_uppercase #string_大写 阅读全文

posted @ 2020-08-28 21:35 小陆同学 阅读(1973) 评论(0) 推荐(0) 编辑

mac--在MAC上安装Libvirt-python

摘要: 报错 import libvirt ImportError: No module named libvirt 解决 # brew install libvirt # brew install libvirt-python # pip install libvirt-python 阅读全文

posted @ 2020-08-28 21:34 小陆同学 阅读(483) 评论(0) 推荐(0) 编辑

python--装饰器的常见使用

摘要: 装饰器验证接口响应时长 from time import time def print_execute_time(func): def wrapper(*args, **kwargs): start = time() func_return = func(*args, **kwargs) end = 阅读全文

posted @ 2020-08-28 21:32 小陆同学 阅读(223) 评论(0) 推荐(0) 编辑

python3--安装webssh服务

摘要: 1、下载 pip3 install webssh 2、启动webssh服务 # 直接运行wssh,使用默认8888端口 wssh # 通过绑定IP地址和端口启动 wssh --address='192.168.0.123' --port=8888 wssh --address='0.0.0.0' - 阅读全文

posted @ 2020-08-28 21:30 小陆同学 阅读(1183) 评论(1) 推荐(0) 编辑

django--celery 项目部署,进程管理,supervisor的使用

摘要: 我们可以使用echo_supervisord_conf命令得到supervisor配置模板,打开终端执行如下Linux shell命令: # echo_supervisord_conf > supervisord.conf 该命令输出文件到当前目录下(当然,你也可以指定绝对路径到具体位置),文件名为 阅读全文

posted @ 2020-08-28 21:25 小陆同学 阅读(493) 评论(1) 推荐(0) 编辑

上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 23 下一页