码迷,mamicode.com
首页 >  
搜索关键字:traceback    ( 752个结果
数据类型
看来,我看的教程版本太低了,很多东西都值得推敲。除了小坑print(""),又出现了小坑2input()......>>> x=input("x:")x:2>>> y=input("y:")y:2>>> print("x*y")x*y>>> print(x*y)Traceback (most rec...
分类:其他好文   时间:2015-07-17 20:56:19    阅读次数:118
迭代器和iter()函数
1、先来个例子,有个初步的印象:myTuple=(123,'xyz',45.67) i=iter(myTuple) i.next() 123 i.next() 'xyz' i.next() 45.67 i.next() Traceback (most recent call last): File "", line 1, in? StopIteration上面的代码中通过iter()函数显式的使用了...
分类:其他好文   时间:2015-07-17 16:21:08    阅读次数:124
python抓取QQ空间的日志
#?-*-?coding:?utf-8?-*- from?HttpRequestModule?import?*? import?os import?json import?traceback import?codecs from?lxml?import?etree import?StringIO,?gzip? import?sys reloa...
分类:编程语言   时间:2015-07-16 22:44:50    阅读次数:179
客户端 cloudera-scm-agent启动报错
环境cloudera5.4.1CentOSrelease6.6x64报错[02/Jul/201504:03:31+0000]18593MainThreadagentERRORHeartbeatingtolocalhost:7182failed.Traceback(mostrecentcalllast):File"/usr/lib64/cmf/agent/src/cmf/agent.py",line975,insend_heartbeatself.master_port)File"/usr/lib64/..
分类:其他好文   时间:2015-07-03 00:32:17    阅读次数:3735
/root/.python-eggs 报错
部署过程中,使用虚环境,但是启动程序的时候报错,如下:Traceback(mostrecentcalllast):File"/home/himalayas/fdsearch/fdsearch/bin/fdsearch",line34,in<module>fromfdsearchimportwsgiFile"/home/himalayas/fdsearch/fdsearch/wsgi.py",line32,in<module>impo..
分类:编程语言   时间:2015-07-03 00:29:20    阅读次数:1507
Python学习之traceback模块
这个模块用于取出,格式化并打印python程序的stacktraces参考资料:https://docs.python.org/2.6/library/traceback.html
分类:编程语言   时间:2015-07-03 00:23:33    阅读次数:194
Python 2.x和3.x不同点
1.print和print()2.yield出现下面的错误Traceback (most recent call last): File “”, line 1, in f.next()AttributeError: ‘generator’ object has no attribute ‘...
分类:编程语言   时间:2015-07-01 17:17:42    阅读次数:166
关于xmpp协议发送消息,登录认证SSL报错的问题
Q:错误描述如下Traceback(most recent call last):File"/tails-share/features/scripts/otr-bot.py", line 197,inotr_bot.serve_forever()File"/usr/lib/python2.7/dis...
分类:其他好文   时间:2015-06-30 17:52:37    阅读次数:144
《Python核心编程》P21输入数值字符串→转整型
>>> num=input('n:')n:1234>>> print('sdf:',n)Traceback (most recent call last): File "", line 1, in print('sdf:',n)NameError: name 'n' is not defi...
分类:编程语言   时间:2015-06-29 13:08:03    阅读次数:212
Python_10-异常处理
目录:1.1 python标准异常1.2 简介1.3 try语句 1.3.1 使用try和except语句来捕获异常 1.3.2 该种异常处理语法的规则 1.3.3 使用try跟finally1.4 用raise语句手工引发一个异常1.5 采用traceback(跟踪)模块查看异常1.6 采用...
分类:编程语言   时间:2015-06-27 15:56:13    阅读次数:153
752条   上一页 1 ... 63 64 65 66 67 ... 76 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!