- 博客(4)
- 收藏
- 关注
原创 Jaden Casing Strings
在Coldwar上碰到一个奇怪的问题Jaden Smith, the son of Will Smith, is the star of films such as The Karate Kid (2010) and After Earth (2013). Jaden is also known for some of his philosophy that he delivers via Tw...
2020-03-28 21:59:36
1000
原创 爬虫打印不出淘宝商品信息
在慕课网看的嵩天老师的课程,按照他的课程代码写的爬虫#CrowTaobaoPrice.pyimport requestsimport re def getHTMLText(url): try: r = requests.get(url, timeout=30) r.raise_for_status() r.encoding = r....
2020-02-23 10:34:04
387
1
原创 中文对齐问题的解决
采用中文字符的空格填充 chr(12288)def printUnivList(ulist,num):#03 print("{0:^10}\t{1:^10}\t{2:^10}".format("排名","学校名称","分数")) for i in range(num): u=ulist[i] print("{0:^10}\t{1:^10}\t{2:...
2020-02-10 21:25:08
187
原创 AttributeError: 'NoneType' object has no attribute 'children'
AttributeError: ‘NoneType’ object has no attribute ‘children’第一次写爬虫,也是第一次博客,就碰到这个问题,查了半天也没找出原因,认真想了一下‘NoneType’ 对象没有属性 ‘children’ ,应该是没有抓取到html网页內部信息,应该问题出现在def getHTMLText(url)函数没有得到url链接,贴出自己在慕课网...
2020-02-09 22:45:24
3347
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人