会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
胸怀丶若谷
每一天都是在我身边的最后一天
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
23
24
25
26
27
28
29
30
31
···
45
下一页
2020年12月12日
pycharm链接mysql报错: Server returns invalid timezone. Go to 'Advanced' tab and set 'serverTimezone' property manually.
摘要: 检查驱动 我本机安装的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)
2020年12月11日
Django2.2:UnicodeDecodeError: 'gbk' codec can't decode byte 0xa6 in position 9737: illegal multibyte sequence
摘要: 报错截图: 解决方案: 打开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)
Django日志输出
摘要: # 自定义日志输出信息 LOGGING = { 'version': 1, 'disable_existing_loggers': True, 'formatters': { 'standard': { 'format': '%(asctime)s [%(threadName)s:%(thread)
阅读全文
posted @ 2020-12-11 12:02 胸怀丶若谷
阅读(103)
评论(0)
推荐(0)
Django错误:ERRORS: ?: (staticfiles.E001) The STATICFILES_DIRS setting is not a tuple or list. HINT: Perhaps you forgot a trailing comma?
摘要: 报错的原因是因为我们的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)
2020年11月30日
按数量分割列表内容
摘要: 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)
2020年11月21日
openpyxl 设置单元格自动换行
摘要: 解决方案 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)
python excel 07版本转换为03版本
摘要: 需要安装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)
2020年11月18日
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
摘要: 解决办法: 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)
2020年11月14日
E: 无法获得锁 /var/lib/apt/lists/lock - open (11: 资源暂时不可用)
摘要: 错误信息: 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)
2020年11月13日
卸载nginx
摘要: 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
下一页
公告