
python
智能滚球子
嘻嘻
展开
-
python import 产生的问题(name 'xml' is not defined)
将代码改为import xmldom=xml.dom.minidom.parse......原创 2015-08-23 22:41:25 · 3666 阅读 · 0 评论 -
Python:AttributeError: 问题
>>> m=re.match(r'WwW\.(.*)\..{3}','www.python.org')>>> m.group(1)Traceback (most recent call last): File "", line 1, in m.group(1)AttributeError: 'NoneType' object has no attribute 'gro原创 2014-11-19 16:55:54 · 10031 阅读 · 0 评论 -
Python 参数知识(变量前加星号的意义)
http://blog.youkuaiyun.com/qinyilang/article/details/5484415原创 2015-08-23 23:44:37 · 2783 阅读 · 0 评论 -
for(i=0,j=0;i<10,j<10;i++,j++)用python怎么写
for i,j in zip(range(10),range(10)): i+=1 j+=1或>>> i=j=0>>> while i i+=1 j+=1或for (x,y) in zip(range(10),range(10)): print x,y或for (i,j) in [(x,x) for x in原创 2015-08-23 22:36:17 · 27749 阅读 · 0 评论 -
Python windows 平台下安装BeautifulSoup
Windows平台安装Beautiful Soup :http://kevinkelly.blog.163.com/blog/static/21390809320133185748442/原创 2015-08-23 23:45:12 · 409 阅读 · 0 评论 -
python中将string转码为ASCII格式
Convert string to ASCII value python:http://stackoverflow.com/questions/8452961/convert-string-to-ascii-value-pythonhttps://docs.python.org/2/library/string.htmlhttp://www.pythoncentral.io/python-un原创 2015-08-23 23:43:39 · 2257 阅读 · 0 评论 -
jpython LookupError: unknown encoding 'ms936' 问题解决
到jpython2.5.3文件下,找到registry文件,将里面的内容这个部分修改修改前:# Setting this to a valid codec name will cause the console to use a# different encoding when reading commands from the console.#python.consol原创 2015-08-23 23:41:18 · 2278 阅读 · 0 评论 -
windows上使用sqllite3的链接整理
SQLLITE3:http://blog.sina.com.cn/s/blog_62d479c501019qwt.html原创 2015-08-23 23:39:22 · 490 阅读 · 0 评论 -
sqllite3打开在其他文件夹里的database
1.先到database所在的文件夹下找到database。2.单击鼠标右键,选择open with。3.在browse里找到sqlite3所在的文件夹下的sqlite3.exe文件。4.然后用这个打开就可以了。原创 2015-08-23 23:38:41 · 562 阅读 · 0 评论 -
Python:AttributeError: 问题
>>> m=re.match(r'WwW\.(.*)\..{3}','www.python.org')>>> m.group(1)Traceback (most recent call last): File "", line 1, in m.group(1)AttributeError: 'NoneType' object has no attribute 'gro原创 2015-08-23 23:42:34 · 6550 阅读 · 0 评论 -
python selenium utf-8 问题
高端自动化测试交流群:310924886'utf8' codec can't decode byte 0xe4 in position 0: unexpected end of data# -*- coding: UTF-8 -*-from selenium import webdriverimport time,osimport codecsimport syss原创 2014-11-19 15:30:43 · 4714 阅读 · 0 评论