![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
superxiaoying
喵喵,我的世界五彩缤纷~
展开
-
python 字符串操作
1. 将字符串部分内容替换如下,表示将nStr1 的前n位替换为ch字符sStr1 = n * ch + sStr1[n:]原创 2017-11-09 20:00:35 · 178 阅读 · 0 评论 -
python 文件操作
创建文件夹建议使用makedirs,当创建目录上层目录不存在时依旧有效os.makedirs(path) 多层创建目录os.mkdir(path) 创建目录原创 2017-11-09 20:14:47 · 201 阅读 · 0 评论 -
绘制loss曲线
从log文件中析取各部分loss值 cat filename | grep smoothed_loss | awk '{print $11}' > smoothed_loss.txt绘制各个部分曲线的codefrom pylab import *import pylab as plvalues = []with open('./baseline7/cls_loss.txt') as原创 2017-11-20 16:17:50 · 2895 阅读 · 0 评论 -
shell 命令锦集
shell命令备用原创 2018-01-03 09:30:54 · 243 阅读 · 0 评论