自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(5)
  • 收藏
  • 关注

原创 python中的shape

a = np.array([[1],[2],[3]])b = np.array([[1,2,3]])c = np.array([1,2,3])print a.shapeprint b.shapeprint c.shape(3, 1)(1, 3)(3,)疑惑的时候看看,简单的例子但是很清晰

2018-09-12 16:59:10 1949

转载 tf.concat & numpy.concatenate

tf.concatt1 = [[1, 2, 3], [4, 5, 6]]t2 = [[7, 8, 9], [10, 11, 12]]tf.concat(0, [t1, t2]) ==> [[1, 2, 3], [4, 5, 6], [7, 8, 9], [10, 11, 12]]tf.concat(1, [t1, t2]) ==> [[1, 2, 3, 7, 8, 9], ...

2018-09-11 16:35:22 329

原创 UnicodeEncodeError: 'decimal' codec can't encode character u'\ufeff' in position 0: invalid decimal

这是因为在生成的txt文件中,误生成了小数点,打开对应的txt文件,把小数点删掉就好了

2018-09-07 15:37:00 2644

转载 解决linux的-bash: ./xx.sh: Permission denied

在linux下执行sh文件时提示下面信息:-bash: ./xx.sh: Permission denied解决:chmod 777 xx.shLinux chmod +755和chmod +777 各是什么意思呢?755 代表用户对该文件拥有读,写,执行的权限,同组其他人员拥有执行和读的权限,没有写的权限,其他用户的权限和同组人员权限一样。777代表,user,group ,ot...

2018-09-07 09:32:50 7996

原创 TypeError: name() argument 1 must be unicode, not str

只需要在输出格式前加上u即可如:with open(filename,'w',encoding='utf-8') as f: f.write(u'{}\n'.format(index)) 

2018-09-03 11:04:37 18458

空空如也

空空如也

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

TA关注的人

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