08 2019 档案

摘要:场景回忆: 本地修改需要退回到之前的版本,打算强制push本地版本覆盖远程版本,但是在git push force后出现了以下的错误: Fix GitLab error: “you are not allowed to push code to protected branches on this 阅读全文
posted @ 2019-08-26 16:56 bingo彬哥 阅读(38013) 评论(0) 推荐(1) 编辑
摘要:原文来源:https://stackoverflow.com/questions/2136556/in python how do i split a string and keep the separators 这是解释这个问题的最简单方法。这是我正在使用的: 这就是我想要的: 原因是我想将一个字 阅读全文
posted @ 2019-08-26 16:41 bingo彬哥 阅读(1120) 评论(0) 推荐(0) 编辑
摘要:原文来源:https://www.zhihu.com/question/22699590 编码问题错误,读入文件的时候指定编码即可。 with open(fname, encoding='utf 8') as data_file: 阅读全文
posted @ 2019-08-26 16:20 bingo彬哥 阅读(6113) 评论(0) 推荐(0) 编辑
摘要:原文来源:https://stackoverflow.com/questions/5586383/how to diff one file to an arbitrary version in git 问:我如何比较一个文件,比方说名称是 pom.xml,比较主分支上的该文件与过去任意版本上的该文件 阅读全文
posted @ 2019-08-19 18:51 bingo彬哥 阅读(291) 评论(0) 推荐(0) 编辑
摘要:问题描述: Libreoffice在版本5.3.0之前都存在这个问题。现象是:当你运行其中一个LibreOffice的时候,再运行另外一个Libreoffice转换时,将不做任何操作。 解决方案: 如果你的Libreoffice的版本在4.5之前,运行: 如果你的Libreoffice的版本在4.5 阅读全文
posted @ 2019-08-19 15:46 bingo彬哥 阅读(3299) 评论(0) 推荐(0) 编辑
摘要:确保你在你想要撤销的分支上。 第一步,本地使用 get reset hard ,切换到特定的commit。 第二部,使用 force推送到远程分支。 阅读全文
posted @ 2019-08-15 15:15 bingo彬哥 阅读(7247) 评论(0) 推荐(0) 编辑
摘要:写了一个脚本读取docker日志,发生报错:Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock 有不少方法, 1、用sudo执行脚本 2、将用 阅读全文
posted @ 2019-08-15 15:03 bingo彬哥 阅读(2541) 评论(0) 推荐(1) 编辑
摘要:原文来源:https://stackoverflow.com/questions/4850717/how to cancel a local git commit 阅读全文
posted @ 2019-08-14 16:32 bingo彬哥 阅读(5975) 评论(0) 推荐(0) 编辑
摘要:原文来源:https://stackoverflow.com/questions/13021654/get column index from column name in python pandas 可以使用 .get_loc实现。 阅读全文
posted @ 2019-08-14 16:05 bingo彬哥 阅读(9834) 评论(0) 推荐(0) 编辑
摘要:Pandas数据展示列太多会显示...不显示具体数据。 设置参数可以显示全部数据: 阅读全文
posted @ 2019-08-14 15:39 bingo彬哥 阅读(946) 评论(0) 推荐(0) 编辑
摘要:原文来源:https://stackoverflow.com/questions/5586383/how to diff one file to an arbitrary version in git 问:如何比较一个文件,比方说pom.xml,比较master分支上与git上任意的一个老版本的区别 阅读全文
posted @ 2019-08-12 10:08 bingo彬哥 阅读(734) 评论(0) 推荐(0) 编辑
摘要:pandas.DataFrame.to_json返回的是JSON字符串,不是字典. 可以使用to_dict进行字典转换。 使用orient指定方向。 原文来源:https://stackoverflow.com/questions/49027872/convert pandas dataframe 阅读全文
posted @ 2019-08-05 15:01 bingo彬哥 阅读(14734) 评论(0) 推荐(0) 编辑
摘要:问:python中如何判断一个集合是另一个集合的子集? 答:用issubset()方法 语法: 返回: True 如果A是B的子集。 False 如果A不是B的子集。 样例: 阅读全文
posted @ 2019-08-05 14:37 bingo彬哥 阅读(7139) 评论(0) 推荐(0) 编辑

本站总访问量8982443
点击右上角即可分享
微信分享提示