码迷,mamicode.com
首页 >  
搜索关键字:recent    ( 1003个结果
python装饰器2:进阶
本文是装饰器相关内容的第二篇,接上一篇 "python函数装饰器详解" 。 函数装饰器装饰方法 函数装饰器装饰普通函数已经很容易理解了: 如果装饰器是带参装饰器,那么等价的形式大概是这样的(和装饰器的编码有关,但最普遍的编码形式如下): 这样的函数装饰器也可以去装饰类中的方法。看下面的方法装饰形式: ...
分类:编程语言   时间:2019-01-01 14:01:05    阅读次数:174
理解卷积神经网络?
南洋理工大学的综述论文《Recent Advances in Convolutional Neural Networks》对卷积神经网络的各个组件以及进展情况进行总结和解读,其中涉及到 CNN 中各种重要层的数学原理以及各种激活函数和损失函数。机器之心技术分析师对该论文进行了解读。 论文地址:htt ...
分类:其他好文   时间:2019-01-01 13:23:38    阅读次数:259
python之 自动补全 tab
1、在python中运行命令sys.path查看python路径 >>> import sys>>> import tabTraceback (most recent call last): File "<stdin>", line 1, in <module>ImportError: No mod ...
分类:编程语言   时间:2018-12-29 23:21:58    阅读次数:197
Python异常处理
assert语句 输出 ...
分类:编程语言   时间:2018-12-26 22:19:15    阅读次数:200
redis.exceptions.ConnectionError: Error 111 connecting to localhost:6379. Connection refused.
$ pip install redis>>> import redis>>> conn = redis.Redis()>>> conn.keys('*')Traceback (most recent call last): File "/home/henry/.local/lib/python3.5 ...
分类:其他好文   时间:2018-12-25 18:03:39    阅读次数:1149
TRANSFORM YOUR HABITS
TRANSFORM YOUR HABITS3rd EditionNote from James Clear:I wrote Transform Your Habits to create a free guide that would help people like you makeprogres ...
分类:其他好文   时间:2018-12-24 17:16:49    阅读次数:135
决策树遇到sklearn.exceptions.NotFittedError: XXX instance is not fitted yet. Call 'fit' with appropriate arguments before using this method.的解决方案
1.异常信息: 2.错误成因: 2.1 表象原因 Exception class to raise if estimator is used before fitting. This class inherits from both ValueError and AttributeError to ...
分类:移动开发   时间:2018-12-19 11:08:28    阅读次数:1300
Python2 中 input() 和 raw_input() 的区别
在 Python2 中如要想要获得用户从命令行的输入,可以使用 input() 和 raw_input() 两个函数,那么这两者有什么区别呢? 我们先借助 help 函数来看下两者的文档注释: 可以看出,raw_input() 返回的始终是一个“原始”(raw)字符串,并且去掉了行末的换行符。 值得 ...
分类:编程语言   时间:2018-12-17 23:59:24    阅读次数:311
python入门(二)isinstance、内置函数、常用运算等
1. isinstance(变量名,类型) #判断什么类型 ps: 只支持输入两个参数,输入3个参数会报错 >>> isinstance (a,int,float) Traceack (most recent call last): File "<stdin>", line 1, in <modul ...
分类:编程语言   时间:2018-12-14 19:43:17    阅读次数:200
docker exec failed!!error from pipe caused \"read parent: connection reset by peer\"问题
一、复现报错: docker exec -it wsqtest bash 二、个人问题描述: aws社区版centos7.4装完docker,dockers pull ${images}后,docker run ${images},docker exec 一直进不去容器,版本如下: 三、网上类似问题 ...
分类:其他好文   时间:2018-12-07 00:35:11    阅读次数:440
1003条   上一页 1 ... 25 26 27 28 29 ... 101 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!