python
IanWatson
hello world!
展开
-
matplotlib对中文的支持,解决饼状图标签中文不显示问题
matplotlib对中文的支持(Font family [‘sans-serif’] not found.Falling back to DejaVu Sans) | 码农家园原创 2021-11-18 15:44:28 · 665 阅读 · 0 评论 -
tensorflow 手写字体识别
https://geektutu.com/post/tensorflow2-mnist-cnn.html原创 2020-09-21 19:56:59 · 176 阅读 · 0 评论 -
linux shell脚本攻略 第六章 归档和压缩rsync,git
1.用rsync备份系统快照对位于不同位置的文件和目录进行同步。与cp区别:差异化传输数据,只有当更新时才复制,支持压缩,加密等。rsync -av src_path dst_path-a:要进行归档-v:在stdout打印进度-z:在网络传输时压缩数据–excludem pattern:排除部分路径–delete:在目的端删除源端不存在的文件2.git使用git add .:添...原创 2020-04-14 22:38:51 · 155 阅读 · 0 评论 -
linux shell脚本攻略 第四章 让文本飞 grep,cut,sed,awk,paste
目录1.正则表达式2.使用grep搜索文本3.使用cut按列切分文件4.使用sed进行替换5.awk高级文本处理1.正则表达式正则表达式手册:https://tool.oschina.net/uploads/apidocs/jquery/regexp.html举例匹配邮箱:[a-z0-9_]+@[a-z0-9]+.[a-z]+匹配所有单词:( ?a-zA-z ?)匹配ip:[0-9...原创 2020-04-14 01:18:56 · 355 阅读 · 0 评论 -
linux shell脚本攻略 第三章 以文件之名 find,chmod,touch,head,tail,tree,wc
1.生成任意大小的文件dd命令dd命令会克隆给定的输入内容,然后将相同的副本写入到输出if:输入文件,/dev/zero是一个字符设备,不断返回\0,如果不指定,默认从stdin输入of:输出文件,如果不指定,默认输出到stdoutbs:block size,字节块大小count:块个数数据总体大小为 bs*countIan>dd if=/dev/zero o...原创 2020-04-13 11:32:15 · 468 阅读 · 0 评论 -
linux shell脚本攻略 第二章 命令之乐 cat,find,tr,sort,uniq,split等
介绍常用命令grep,sed,find等命令。1. 使用cat进行拼接cat本身表示拼接(concatnate)。将标准输入与文件内容拼接Ian>ls |cat - out.txt func.shout.txtprp.shscript.sh 1 func.sh 2 out.txt 3 script.sh摆脱多余的空白行:cat -...原创 2020-04-12 16:00:17 · 718 阅读 · 0 评论 -
Python多线程编程(三):threading模块的类与函数之基本类
主要参考文章:https://www.cnblogs.com/ArsenalfanInECNU/p/10134591.htmlthreading是python中用于线程相关操作的模块。python当前版本的多线程库没有实现优先级、线程组,线程也不能被停止、暂停、恢复、中断。本文章主要介绍threading模块的主要类与函数。1.threading模块概览threading模块提供的类:...原创 2020-04-02 17:55:11 · 455 阅读 · 0 评论 -
Python多线程编程(一):GIL锁
https://blog.csdn.net/abc_12366/article/details/80231617?fps=1&locationNum=2原创 2020-03-08 09:54:53 · 520 阅读 · 0 评论