- 博客(4)
- 收藏
- 关注
转载 idea运行测试时提示错误Failed to resolve org.junit.platform:junit-platform-launcher:1.5.2
在pom 中添加这个依赖 <dependency> <!-- this is needed or IntelliJ gives junit.jar or junit-platform-launcher:11.5.2 not found errors --> <groupId>org.junit.platform</groupId...
2020-02-23 11:09:25
2698
原创 解决Mac matplotlib.plot 中文字体显示问题,亲测好用!
Mac matplotlib.plot 中文字体显示问题 参考自知乎 https://www.zhihu.com/question/25404709 亲测找到方法中最有效而且便捷。 import matplotlib a=sorted([f.name for f in matplotlib.font_manager.fontManager.ttflist]) for i in a: print ...
2019-12-26 10:48:50
809
原创 Python pandas技巧--行列重命名
pandas 行列重命名1.列重命名1.1. 读取数据时直接进行修改1.2. rename()进行字典映射修改列名1.3. columns 直接进行赋值命名对行进行重命名 1.列重命名 1.1. 读取数据时直接进行修改 data_list=[[2017001,"张三",18], [2017002,"李四",19], [2017003,"王五",18]] # 没有...
2019-12-16 14:02:36
7099
原创 Python 字符串处理篇
一、字符串操作六利器:拆分,修剪,拼接,检测,计数 ,替代1.拆分 split, str.split(",");2.修剪 strip, rstrip, lstrip str.strip() , 用于修剪空白符(包括换行符);3.拼接 join “:”.join(), 方法传入一个列表或元组;4.检测 in, index, find,rfind in "a" in "abc" 返回结果为bool类
2018-01-17 22:34:20
1526
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人