自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(13)
  • 资源 (2)
  • 收藏
  • 关注

原创 去除plt.savefig()的白边 Removing white space around a saved image in matplotlib

        plt.savefig('hah.png',bbox_inches='tight',dpi=fig.dpi,pad_inches=0.0)其中 bbox_inches = 'tight' 可以去除坐标轴占用的空间(如果只是set_visiable = False,只能不显示,但空间还占用)       dpi指定为原图的dpi,控制保存图片的质量/分辨率      p...

2018-11-01 17:16:25 26039 6

转载 .bat 文件调用python脚本

.bat 文件调用python脚本1.将clearlog.py 脚本放在指定目录 比如 我放在 C:\Users\Administrator\Desktop 上 也就是桌面上 2.创建一个.bat 位后缀名的脚本3.写入如下脚本@echo off cd  C:\Users\Administrator\Desktopstart python clearlog.py 双击bat文件...

2018-06-14 19:49:04 6710

原创 洛谷-T24950 今天星期几

# -*- coding: utf-8 -*-"""Created on Wed Apr  4 20:06:09 2018@author: wdf"""L=input()L=L.split(" ")y=int(L[0])m=int(L[1])d=int(L[2])if m==1 or m==2:    y-=1    m+=12W= (d+2*m+3*(m+1)//5+y+y//4-y//100+...

2018-04-15 11:45:40 231

原创 洛谷-P3954 成绩

# -*- coding: utf-8 -*-"""Created on Wed Apr  4 19:45:59 2018@author: wdf"""x=input()xlist=x.split(" ")H1=  int(xlist[0])H2 = int(xlist[1])H3 = int(xlist[2])#作业成绩×20%+小测成绩×30%+期末考试成绩×50%score = int(H1...

2018-04-15 11:45:00 488

原创 洛谷-P1567 统计天数

# -*- coding: utf-8 -*-"""Created on Tue Apr 10 21:09:00 2018@author: wdfN = int(input())#天数l=input()#print(l)l=l.split(" ")#print(l)for i in range(0,N):    l[i]=int(l[i])    #print(l[i])n=0i=0a=0m=[]...

2018-04-15 11:44:27 312

原创 洛谷-P1425 小鱼的游泳时间

# -*- coding: utf-8 -*-"""Created on Wed Apr  4 19:34:09 2018@author: wdf"""x=input()xlist=x.split(" ")H1=  int(xlist[0])M1 = int(xlist[1])H2 = int(xlist[2])M2 = int(xlist[3])if (M2>M1):    H=H2-H1...

2018-04-15 11:43:55 415

原创 洛谷-P1424 小鱼的航程(改进版)

# -*- coding: utf-8 -*-"""Created on Thu Apr  5 19:51:13 2018这里有一个错误,只能得90分x=input()xlist=x.split(" ")x=  int(xlist[0])n = int(xlist[1])remain=7-x +1              #本周剩几天if x>5:    remain_swim=0else...

2018-04-15 11:42:20 722

原创 洛谷-P1423 小玉在游泳

# -*- coding: utf-8 -*-"""Created on Thu Apr  5 19:45:13 2018@author: wdf"""k = float(input())n=1s=2s1=2while (s<k):    n+=1    s1=0.98*s1    s+=s1print (n)

2018-04-15 11:41:51 849

原创 洛谷-P1422 小玉家的电费

# -*- coding: utf-8 -*-"""Created on Wed Apr  4 19:58:38 2018@author: wdf"""x = int(input())#输入 if x<=150:    y=0.4463*xelif x<=400:    y=0.4463*150+(x-150)*0.4663else:     y=0.4463*150+(400-150...

2018-04-15 11:40:57 688

原创 洛谷-P1089 津津的储蓄计划

# -*- coding: utf-8 -*-"""Created on Tue Apr 10 23:10:48 2018@author: wdf"""m = 300# //每月的收入 flag = True#判断是否超支 h = 0s = 0for i in range(1,13):    a = int(input())#输入     h += m#领工资     if (h < a):...

2018-04-15 11:40:25 585

原创 洛谷-P1085 不高兴的津津

# -*- coding: utf-8 -*-"""Created on Thu Apr  5 21:07:50 2018@author: wdf"""max=0j=0for i in range(0,7):    x=input()    xlist=x.split(" ")        x = int(xlist[0])    #x[i]表示school time    n = int(xl...

2018-04-15 11:39:31 616

原创 洛谷 P1035 级数求和

# -*- coding: utf-8 -*-"""Created on Thu Apr  5 19:26:33 2018@author: wdf"""sn=0.0k = int(input())for i in range(1,1835422):#这个数字是试出来的,刚好够大        sn=sn+1.0/i    if(sn>k):        print(i)        br...

2018-04-15 11:38:20 417

原创 关于tensorboard :No graph data was found.问题

tensorflow小白,被tensorboard问题困扰好几天,尤其是打开浏览器无数据:我搜到的解决方案都是:cd进到文件夹后tensorboard --logdir = "path……"我都试了,在我电脑上都不行。刚刚在https://www.tensorflow.org/get_started/summaries_and_tensorboard里的视频演示里,发现输入的命令不一样

2018-01-06 00:18:16 507 1

十种流行网络在cifar-10数据集上的应用

实验环境: - Python (3.5.2) - Keras (2.1.3) - tensorflow-gpu (1.4.1) 十种方法: - [LeNet-5 - Yann LeCun][2] - [Network In Network][3] - [Very Deep Convolutional Networks for Large-Scale Image Recognition][4] - [Deep Residual Learning for Image Recognition][5] - [Identity Mappings in Deep Residual Networks][6] - [Wide Residual Networks][7] - [Aggregated Residual Transformations for Deep Neural Networks][8] - [Densely Connected Convolutional Networks][9] - [Squeeze-and-Excitation Networks][10]

2018-04-13

《tensorflow实战Google深度学习框架》第二版代码

第二版的,tf版本为1.4.0,能直接运行。 2018年2月1日出版。

2018-04-09

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除