上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 45 下一页
摘要: 检查驱动 我本机安装的mysql版本是5.6的,那么IDEA要连接mysql也应该匹配下驱动版本。把Driver改成MySQL for 5.1就可以了. 参考链接:https://blog.csdn.net/qq_38436214/article/details/102922619 阅读全文
posted @ 2020-12-12 18:47 胸怀丶若谷 阅读(77) 评论(0) 推荐(0)
摘要: 报错截图: 解决方案: 打开django/views下的debug.py文件,转到line331行: with Path(CURRENT_DIR, 'templates', 'technical_500.html').open() as fh 将其改成: with Path(CURRENT_DIR, 阅读全文
posted @ 2020-12-11 12:48 胸怀丶若谷 阅读(99) 评论(0) 推荐(0)
摘要: # 自定义日志输出信息 LOGGING = { 'version': 1, 'disable_existing_loggers': True, 'formatters': { 'standard': { 'format': '%(asctime)s [%(threadName)s:%(thread) 阅读全文
posted @ 2020-12-11 12:02 胸怀丶若谷 阅读(103) 评论(0) 推荐(0)
摘要: 报错的原因是因为我们的STATICFILES_DIRS赋值时,形式不对,其应该赋数组对象,具体如下: 找到settings.py文件, 把 STATICFILES_DIRS=(os.path.join(BASE_DIR,'static')) 改为 STATICFILES_DIRS=[(os.path 阅读全文
posted @ 2020-12-11 11:32 胸怀丶若谷 阅读(462) 评论(0) 推荐(0)
摘要: def split_list(init_list, children_list_len): """ 分割列表 :param init_list: 列表数据 :param children_list_len: 分割的数量 :return: end_list """ split_list = zip(* 阅读全文
posted @ 2020-11-30 15:46 胸怀丶若谷 阅读(152) 评论(0) 推荐(0)
摘要: 解决方案 openpyxl的alignment函数中的参数:wrapText=True,就可以了 from openpyxl.styles import Alignment worksheet.cell(row=1, column=1, value=value).alignment = Alignm 阅读全文
posted @ 2020-11-21 20:02 胸怀丶若谷 阅读(10333) 评论(2) 推荐(0)
摘要: 需要安装pywin32模块 pip install pywin32 主程序: import win32com.client as win32 import os.path import glob class Format(): """用于文件转换的类""" def __init__(self): s 阅读全文
posted @ 2020-11-21 16:47 胸怀丶若谷 阅读(987) 评论(0) 推荐(0)
摘要: 解决办法: python3 是用 VC++ 14 编译的, python27 是 VC++ 9 编译的, 安装 python3 的包需要编译的也是要 VC++ 14 以上支持的.可以下载安装这个:visualcppbuildtools_full.exe 链接:https://pan.baidu.co 阅读全文
posted @ 2020-11-18 11:23 胸怀丶若谷 阅读(7362) 评论(0) 推荐(0)
摘要: 错误信息: E: 无法获得锁 /var/lib/apt/lists/lock - open (11: 资源暂时不可用) E: 无法对目录 /var/lib/apt/lists/ 加锁 解决方案: 1 ps-aux 查出apt-get进程的PID 2 用sudo kill PID代码 杀死进程(找出带 阅读全文
posted @ 2020-11-14 14:44 胸怀丶若谷 阅读(93) 评论(0) 推荐(0)
摘要: sudo find / -name nginx* 输入以上命令,先查询出ngxin文件的所有位置, sudo rm -rf file /usr/local/nginx* 执行删除命令。 阅读全文
posted @ 2020-11-13 11:28 胸怀丶若谷 阅读(79) 评论(0) 推荐(0)
上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 45 下一页