会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
久曲健
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
5
6
7
8
9
10
11
12
13
···
78
下一页
2023年8月15日
Git常见报错:Your local changes to the following files would be overwritten by merge
摘要: ### 1、报错原因 该报错在git pull时出现,一句话解释就是你在本地改动了代码但是还没有提交,此时再拉取最新代码,远程代码和你当前的本地代码发生冲突!(注意有冲突时才会提示,如果没有冲突,则git pull成功,因为git pull实质上就是一个远程分支merge到本地分支过程。 ### 2
阅读全文
posted @ 2023-08-15 09:38 久曲健
阅读(1625)
评论(0)
推荐(0)
2023年8月13日
python实现在excel文件中写入和追加内容
摘要: ### 示例代码 ```python # -*- coding: utf-8 -*- """ # @Time : 2023/08/13 18:01 # @Author : longrong.lang # @FileName: demo.py # @Software: PyCharm # @Blog
阅读全文
posted @ 2023-08-13 18:38 久曲健
阅读(402)
评论(0)
推荐(0)
2023年8月9日
解决python读取文件报错UnicodeDecodeError: 'gbk' codec can't decode byte 0xbc in position 124: illegal multibyte sequence问题
摘要: 示例代码: ```python with open(base_path + "\\config\\user.json",encoding='utf-8') as f: data = json.load(f) print(data) ``` 效果: 
评论(0)
推荐(0)
2023年8月5日
解决python+request上传文件报错"the request was rejected because no multipart boundary was found"
摘要: ### 解决方法 不在headers里面加content-type,不加请求头 参考链接:https://www.cnblogs.com/TidalCoast1034/p/15534672.html
阅读全文
posted @ 2023-08-05 14:48 久曲健
阅读(1109)
评论(0)
推荐(0)
2023年7月23日
解决python解析Excel文件报错xlrd.biffh.XLRDError: Excel xlsx file; not supported
摘要: ### 报错如下:  ### 解决方案: #### 1、安装低版本xlrd `pip install xlrd==1.2
阅读全文
posted @ 2023-07-23 20:00 久曲健
阅读(301)
评论(0)
推荐(0)
2023年7月22日
python获取当前项目根目录
摘要: ```python def get_item_path(item_name): """ :param item_name: 项目名称,如pythonProject :return:项目根目录 """ # 获取当前所在文件的路径 cur_path = os.path.abspath(os.path.d
阅读全文
posted @ 2023-07-22 19:52 久曲健
阅读(251)
评论(0)
推荐(0)
pytest运行测试用例,控制台无法输出logging日志
摘要: ```ini [pytest] log_cli = 1 log_cli_level = INFO ``` 
阅读全文
posted @ 2023-07-22 19:26 久曲健
阅读(117)
评论(0)
推荐(0)
python logging模块写入中文,文件乱码的解决方法
摘要: ```python # 创建FileHandler对象 fh = logging.FileHandler('mylog.log',encoding="utf-8",mode="a") ```
阅读全文
posted @ 2023-07-22 19:17 久曲健
阅读(171)
评论(0)
推荐(0)
2023年6月15日
SQL查询面试题,会这些基本够用了
摘要: ### 写在前面 我已经记不起来,有多久没更新文章了。 5月中旬我还在上班,中旬以后一系列发生的事情,真的远远超出了可承受范围,只能硬着头皮面对! 我是谁,我应该是谁,又能怎样,只能向前····· ### 数据库实例 #### class表 
评论(3)
推荐(2)
2023年4月19日
docker卸载
摘要: linux环境卸载docker的方法如下: yum remove docker \ docker-client \ docker-client-latest \ docker-common \ docker-latest \ docker-latest-logrotate \ docker-logr
阅读全文
posted @ 2023-04-19 13:25 久曲健
阅读(330)
评论(0)
推荐(0)
上一页
1
···
5
6
7
8
9
10
11
12
13
···
78
下一页
公告