码迷,mamicode.com
首页 >  
搜索关键字:traceback    ( 752个结果
递归和for循环
# -*- coding: utf-8 -*-#python 27#xiaodeng#http://www.cnblogs.com/BeginMan/p/3223356.html#递归2'非递归方式'sum=0#没有sum=0,会出现如下错误提示'''Traceback (most recent c...
分类:其他好文   时间:2015-10-24 00:09:20    阅读次数:293
第五章 python中的异常处理
每种编程语言都会有自己的异常处理机制,虽然各有特色,但基本上都差不多,那么python中强大异常处理机制是什么样的呢?一、异常:python用异常对象来表示异常情况,遇到错误后,会引发异常。如果异常对象并未被处理或捕获,程序会用回溯终止执行:1 >>> 1/02 Traceback (most re...
分类:编程语言   时间:2015-10-16 18:21:29    阅读次数:179
python2.7安装pip遇到ImportError: cannot import name HTTPSHandle
python2.7,报错如下:Traceback (most recent call last):File "/usr/local/bin/pip", line 9, in load_entry_point('pip==1.4.1', 'console_scripts', 'pip')()File....
分类:编程语言   时间:2015-10-16 16:56:47    阅读次数:286
解决cocos2dx 打包lua环境搭建问题( ImportError: No module named Cheetah.Template)
将c++ 封装成lua调用时,显示一下错误:PYTHON_BIN not defined, use current python.generating userconf.ini...Generating bindings for cocos2dx_TextLoader...Traceback (mo...
分类:其他好文   时间:2015-10-12 00:43:08    阅读次数:2026
零基础学python-16.1 作用域快速入门
这一章节我们来聊聊作用域基础 python在创建、改变或者查找变量都是在所谓的命名空间中进行,作用域指的就是命名空间 简单的说:就是这个变量可以被访问的范围 我们举一个比较容易理解的例子--函数 >>> def test(): x=1 print(x) >>> x Traceback (most recent call last): File "", line 1, in ...
分类:编程语言   时间:2015-09-12 10:55:19    阅读次数:165
mac下安装MYSQL-python
今天在mac电脑上安装python的mysql时出现如下问题:该安装时是使用sudo pip install MySQL-python来安装mysql模块,安装没有问题,但是在python中导入MySQLdb的时候出现Traceback (most recent call last): File "...
分类:数据库   时间:2015-09-07 21:16:01    阅读次数:293
CentOS6设置Django开发环境
今天在我的Centos6.5机器上安装 Django 开发环境,在安装完使用 “django-admin.py startproject myapp” 创建应用的时候报了下面的错误$ django-admin.py startproject myapp Traceback (most recent call last): File "/home/jhadmin/myenv/bin/django-...
分类:其他好文   时间:2015-09-05 22:21:59    阅读次数:265
零基础学python-8.3 列表的索引、分片和矩阵
索引: 注意:如果超出长度,则报错 如果索引为负数,则取数的方向反转 >>> aList=['123',123,123.0] >>> aList[0] '123' >>> aList[2] 123.0 >>> aList[-2] 123 >>> aList[-3] '123' >>> aList[3] Traceback (most recent call last): File "",...
分类:编程语言   时间:2015-08-28 00:58:39    阅读次数:148
postgresql 致命错误: 已保留的连接位置为执行非复制请求的超级用户预留
最近监控系统的数据库监控总是延迟,查看日志报错:2015-08-27 10:20:19,534 ERROR Traceback (most recent call last): File "oracle_mon.py", line 306, in update_status(ip, 'stop', timer.end_date) File "oracle_mon.p...
分类:数据库   时间:2015-08-28 00:57:12    阅读次数:303
python: local variable 'xxx' referenced before assignment
问题发现xxx = 23def PrintFileName(strFileName): if xxx == 23: print strFileName xxx = 24PrintFileName("file")报错Traceback (most recent ca...
分类:编程语言   时间:2015-08-28 00:36:04    阅读次数:184
752条   上一页 1 ... 60 61 62 63 64 ... 76 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!