上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 15 下一页
摘要: 网上查找原因说:出现该错误的原因是因为版本不兼容。检查了一下python版本和oracle 的版本,我的oracle client是10g的,python的版本是2.7,但我安装的cx_oracle是cx_Oracle-5.0.2-11g.win32-py2.5.msi, 是for 11g的.于是换了一个cx_Oracle-5.0.2-10g.win32-py2.5.msi。这回还是报错,不过换了一个错误,说是哪个DDL找不到。解决办法:还是下载 10g,python 2.7 的,这回编译的时候总算没什么问题了。看了python的版本一致性要求还是挺高的啊。 阅读全文
posted @ 2013-11-13 17:31 Alex-Zeng 阅读(2070) 评论(0) 推荐(0) 编辑
摘要: 问题描述:具体设置设置成功。 阅读全文
posted @ 2013-11-11 14:50 Alex-Zeng 阅读(239) 评论(0) 推荐(0) 编辑
摘要: 因工作需要,要查找中文汉字分词,因为python正则表达式\W+表示的是所有的中文字就连标点符号都包括。所以要想办法过滤掉。参考博客:http://log.medcl.net/item/2011/03/the-chinese-deal-is-the-python/1.匹配中文时,正则表达式规则和目标字串的编码格式必须相同 print sys.getdefaultencoding() text =u"#who#helloworld#a中文x#" print isinstance(text,unicode) print textUnicodeDecodeError: ' 阅读全文
posted @ 2013-10-24 14:54 Alex-Zeng 阅读(643) 评论(0) 推荐(0) 编辑
摘要: 按照http://space.itpub.net/195110/viewspace-711110的说法顺利解决问题。通过DBLink更新远程数据的时候,如果使用到本地的sequence、函数、过程、包等将会发生ORA-02069。两边设置意义真的不是很大。但问题本身值得研究。 阅读全文
posted @ 2013-09-16 18:03 Alex-Zeng 阅读(380) 评论(0) 推荐(0) 编辑
摘要: 安装参考博客:http://davenzhang.com/scrapy_install.htm我是先安装了scrapy,发现import scrapy 的时候报错。之后一次安装了下面关联软件的.exe文件。之后就可以导入了。Twisted:twisted-Downloadzope.interface:zope.interface-Downloadlxml:lxml-DownloadpyOpenSSL:pyopenssl-Download这时候 import scrapy 的时候很正常,但是用scrapy startproject demo 的时候报错了,看version 也报错D:\Just4 阅读全文
posted @ 2013-09-06 11:54 Alex-Zeng 阅读(1118) 评论(0) 推荐(0) 编辑
摘要: #-*- coding:utf-8 -*-##D.has_key(k): A predicate that returns True if D has a key k.##D.items(): Returns the contents of dictionary D as a list of two-element tuples(k,v),##D.iteritems():Returns an iterator that generates the values from dictionary D as##a sequence of two-element tuples(k,v).##signa 阅读全文
posted @ 2013-08-22 10:44 Alex-Zeng 阅读(341) 评论(0) 推荐(0) 编辑
摘要: # -*- coding:utf-8 -*-##s.partition(d)##Searches string s for the first occurrence of some delimiter string d.if s contains##the delimiter,it returns a truple(pre,d,post),where pre is the part of s before##the delimiter ,d is the delimiter itself,and post is the part of s after the delimiter.##s=u&# 阅读全文
posted @ 2013-08-20 18:05 Alex-Zeng 阅读(283) 评论(0) 推荐(0) 编辑
摘要: --Notes:测试环境:Windows ,python 2.7.3,python 自带的IDLE#-*- coding: utf-8 -*-# First Lesson# --- Line syntax ---# The comment character is "#" ;comments are terminated by end of line.# Long lines may be continued by ending the line with a backslash(\).# --- Names and Keywords ---# Python names(a 阅读全文
posted @ 2013-08-15 08:53 Alex-Zeng 阅读(248) 评论(0) 推荐(0) 编辑
摘要: 参考帖子:http://www.cognoschina.net/club/thread-29255-3-1.html没有实现自动登录前,每次打开pyi 都要输入用户名密码,利用脚本加载的时候十分不方便。1.首先确保已经安装了common logon。装好了cognos目录下会多一个commonLogon的目录。如果没有安装,网上提供了安装方式(笔者没试过,请酌情考量):For Cognos Series 7 Version 3 (7.3) and next versions:Open the \Cognos\amwcls directory on the installation CD and 阅读全文
posted @ 2013-08-14 18:42 Alex-Zeng 阅读(535) 评论(0) 推荐(0) 编辑
摘要: 参考博客:http://www.bjwilly.com/archives/325.html1.下载光盘映像目前可选12.04LTS(长期支持版本)http://www.ubuntu.org.cn/desktop/get-ubuntu/download/3.2 U盘安装下载ultraiso, 安装好ultraiso后,打开刚下载的ubuntu光盘镜像.选择菜单–启动–写入硬盘镜像…,(注意所选的写入方式要写成USB-HDD+):点击写入,等待软件写入。软件会自动格式化U盘,所以先备份好U盘数据。完成之后打开U盘目录下的\isolinux\syslinux.cfg,将default vesamen 阅读全文
posted @ 2013-07-30 08:54 Alex-Zeng 阅读(188) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 15 下一页