2016年12月5日

python_bug

摘要: with open('test.txt','r',encoding='utf8') as f: Exception:'encoding' is an invalid keyword argument for this function Reason:'encoding' is not suitabl 阅读全文

posted @ 2016-12-05 16:35 BruceSue 阅读(173) 评论(0) 推荐(0) 编辑

spider_jpg

摘要: __author__ = 'sus' #urllib模块提供了读取Web页面数据的接口import urllib#re模块主要包含了正则表达式import re#定义一个getHtml()函数def getHtml(url): page = urllib.urlopen(url) #urllib.u 阅读全文

posted @ 2016-12-05 16:15 BruceSue 阅读(112) 评论(0) 推荐(0) 编辑

java连接sql问题

摘要: 1.No suitable driver found for Jdbc: 1)确保​jdbc:sqlserver://localhost;user=sa;password=123456;database=learn正确​ 2)确保connection,perpareStatement等语句正确​ 3 阅读全文

posted @ 2016-12-05 16:07 BruceSue 阅读(149) 评论(0) 推荐(0) 编辑

导航