-
Python模糊查找Python模糊查找报了一个如下错误:Traceback(mostrecentcalllast): File"C:\ProgramFiles\Google\google_appengine\google\appengine\ext\webapp\__init__.py",line511,in__call__ handler.get(*groupsxieyingan 时间:12-09 + 阅读全文
-
求助python文本处理相关问题,多谢大家啊,急用啊两篇文件a文件:形式为 支持/v,-7.06848742795272,-4.31503433962964,很/d,-5.50451188959537,-3.95203371203923,不/d,-3.30470666566566,-4.19749446506868,好/a,-4.67734893761723,-3.74887545310528,不错/a,-7.03211978xhnqchchfeng 时间:12-09 + 阅读全文
-
请教高手,python的时间单位是什么???importtimea=time.time()print('hello,world')b=time.time()c=b-aprintc请问高手,显示出这个c的值的单位是秒还是毫秒???king_2007 时间:12-08 + 阅读全文
-
关于for语句中使用文件对象importsys#openfiletry: file=open("clients.dat","r")exceptIOError: print>>sys.stderr,"Filecouldnotbeopened" sys.exit(1)eeeee159963 时间:12-08 + 阅读全文
-
利用Python抓站碰到Ajax怎么办?以前看到过某人写了一个Python抓站方法总结,可惜没提到Ajax的问题。碰到这种动态的表单,不知道该怎么办了。请问有了解的吗?tianxicool 时间:12-08 + 阅读全文
-
python import 路径求教我某一代码在d:\X目录下,有x0.py,x1.py等文件而在另一目录d:\Y\Z目录下z0.py想引用x0.py,怎么办?我是这样做的:在d:\X目录下放空__init__.py文件,而在z0.py中代码importsyssys.path.append("D:\\X") importX.x0x0.main()但好像不行。若在IDLEzaley 时间:12-08 + 阅读全文
-
python cursor.rowcount 为何老是为0?代码简要如下:con=cx_Oracle.connect("aa","bb","cc") cursor=con.cursor()sql='selectsubstr(appid,1,6)appid,productnamefromlotwherevendorlotid='A12345'' printcursor.rowcountrow=cursLiuLinda999 时间:12-08 + 阅读全文
-
Python OOP总结转:CityofAngelsPythonOOP总结面试的时候被问到几次python的OOP都挂了,决定认真的学一遍~~python的面向对象的设计和c++等编译语言不同,主要注意的是:1、python的类没有访问权限的问题,也就是说所有的变量都是可访问的。实际上python有私有的机制,就是在属性前加__,但是这种私有机制实际上也是伪私有,因为它其实是用一个别名来保中关村村草 时间:12-08 + 阅读全文