会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
木、曰曲直
博客园
首页
新随笔
联系
订阅
管理
2020年7月28日
docker报错: Couldn't connect to Docker daemon at http+docker://localhost
摘要: 将当前用户添加到docker组就可以了 1、如果还没有 docker group 就添加一个 sudo groupadd docker 2、将用户加入该 group 内。然后退出并重新登录就生效啦。 sudo gpasswd -a $ docker 3、重启 docker 服务 sudo servi
阅读全文
posted @ 2020-07-28 15:01 木,曰曲直
阅读(4513)
评论(0)
推荐(0)
2020年7月24日
echarts -设置间距-没有间距的柱状图
摘要: 将barCategoryGap设置为"0%"就可以去除柱子之间的间距 详见echarts配置项手册的series[i]-bar.barGap https://echarts.apache.org/zh/option.html#series-bar
阅读全文
posted @ 2020-07-24 09:49 木,曰曲直
阅读(17551)
评论(0)
推荐(0)
2020年7月23日
python解析json报错--json.decoder.JSONDecodeError: Unexpected UTF-8 BOM
摘要: 以utf-8-sig形式打开文件即可 with open('./JsonMap/features.json', 'r', encoding='utf-8-sig') as f: data = f.read() data = json.loads(data)
阅读全文
posted @ 2020-07-23 13:37 木,曰曲直
阅读(1686)
评论(0)
推荐(0)
2020年7月14日
vuejs本地局域网访问
摘要: 打开package.json,找到scripts下的dev 结尾增加一个参数 --host 192.168.191.1(更改为自己电脑ip) "scripts": { "dev": "webpack-dev-server --inline --progress --config build/webp
阅读全文
posted @ 2020-07-14 15:46 木,曰曲直
阅读(367)
评论(0)
推荐(0)
2020年7月3日
bootstrap 适应手机端
摘要: 在html的head标签加入以下内容即可 <head> <meta name="viewport" content="width=device-width, initial-scale=1.0"> </head>
阅读全文
posted @ 2020-07-03 14:07 木,曰曲直
阅读(1549)
评论(0)
推荐(0)
2020年6月29日
linux下python脚本后台运行
摘要: nohup python check_battery.py > /dev/null 2>&1 & jobs kill %1 参考链接 https://www.jianshu.com/p/4041c4e6e1b0 https://blog.csdn.net/ithomer/article/detail
阅读全文
posted @ 2020-06-29 17:09 木,曰曲直
阅读(303)
评论(0)
推荐(0)
2020年6月20日
git-使用笔记
摘要: 初始化 git add file 将文件添加至暂存区,多个文件用git add * git commit -m 'xxx' 提交至当前版本 git log --pretty=oneline 查看commitid 和 commit消息 git reflog 查看自己命令 git reset --har
阅读全文
posted @ 2020-06-20 14:15 木,曰曲直
阅读(119)
评论(0)
推荐(0)
2020年6月19日
python-找出字典dic中重复值
摘要: # Python code to demonstrate # finding duplicate values from dictionary # initialising dictionary ini_dict = {'a':1, 'b':2, 'c':3, 'd':2} # printing i
阅读全文
posted @ 2020-06-19 17:50 木,曰曲直
阅读(3343)
评论(0)
推荐(0)
2020年6月12日
pandas-两个Series拼接合并为一个DataFrame(pd.concat)
摘要: a_series = pd.Series(["a", "b", "c"], name="Letters") another_series = pd.Series([1, 2, 3], name="Numbers") df = pd.concat([a_series, another_series],
阅读全文
posted @ 2020-06-12 11:02 木,曰曲直
阅读(15991)
评论(0)
推荐(3)
2020年6月10日
个人纪录
摘要: 恢复内容开始 response_data['list'][0]是一个python字典,indent可以让文件内容缩进4个空格 json_str = json.dumps(response_data['list'][0], indent=4) with open('record.json', 'a')
阅读全文
posted @ 2020-06-10 17:12 木,曰曲直
阅读(120)
评论(0)
推荐(0)
下一页
公告