2020年3月20日
_init_()和_call_() _init_()相当于类的构造器 _call_(): Python中的函数是一级对象,也就是说函数的引用可以作为输入传递到其他函……
阅读全文
2020年3月19日
查看文件大小 stat命令 1 2 3 4 5 6 7 8 9 10 (base) root@debian:~/tf_down# stat download File: download Size: 9087 Blocks: 24 IO Block: 4096 regular file Device: fe01h/65025d Inode: 410261 Links: 1 Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root) Access: 2020-03-19 16:14:06.998596373 +0800 Modify: 2020-03-19 16:14:07.102598211 +0800 Change: 2020-03-19 16:14:07.102598211 +0800 Birth: - wc命令 1 2 3 (base) root@debian:~/tf_down# wc -c download 9087……
阅读全文
2020年3月16日
TFrecord文件定义: 这是一种将图像数据和标签放在一起的二进制文件,能更好的利用内存,在tensorflow中快速的复制,移动,读取,存储 等等.. 本质上和x……
阅读全文
2020年3月15日
跟着tf官网过一遍DCGAN的算法流程,源地址 导入包 1 from __future__ import absolute_import, division, print_function, unicode_literals absolute_import模块:一般情况下,程序默认是先在系统的默认目录中寻找导入的包,……
阅读全文
2020年3月13日
基本概念 参考HTTPS精读TLS证书校验 https比http多了一层安全层(Security Layer)–TLS/SSl SSL是最早的安全层协议……
阅读全文
2020年3月11日
nohup后台运行程序,后台运行,进程查看,和终止 参考 1、不挂断的执行命令 2、& 后台运行 1 2 3 4 5 6 7 nohup command & #查看运行的后台程序,只能查看当前终端 jobs -l #……
阅读全文
2020年3月11日
执行shell命令,并获取返回值 1 2 3 4 5 6 7 8 func execshell(){ cmd := exec.Command("v2ray","url","**") //参数要分开 //将返回值输出到缓存 var out bytes.Buffer cmd.Stdout = &out //执行命令 err:=cmd.Run() } 参考go调用shell命令……
阅读全文
2020年3月10日
with语句,对于实现需要设置,事后做清理工作,with语句就能很好的处理: 在不用with语句: 1 2 3 4 5 file = open("/temp") try: data = file.read() finally: file.close() 使用with语句: 1 2 with open("/tmp/fs") as file: data = file.read()……
阅读全文