
Python
Turing·
不积小流无以成江海
展开
-
python爬虫+flask项目
github地址:https://github.com/qycwudi/flaskProject原创 2020-11-13 14:50:34 · 902 阅读 · 6 评论 -
Python爬虫实例
import urllib.requestfrom bs4 import BeautifulSoupimport reimport xlwt#正则表达式findLink = re.compile(r'<a class="" href="(.*?)">')title = re.compile(r'<span class="title">(.*?)</span>')imgLink = re.compile(r'<img .* src="(.*?)".*/.原创 2020-11-09 22:23:50 · 730 阅读 · 1 评论 -
Python高级知识练习
# ------------------*************正则表达式**********--------------# match 用于指定文本模式和待匹配的字符串,起始要匹配对# import re# m = re.match("qyc","qyc")# if m is not None:# print(m.group())# print(m.__class__.__name__)# print(m)## n = re.match("qyc","qychy") #.原创 2020-10-22 12:15:33 · 366 阅读 · 0 评论 -
Python初级知识练习
截至正则表达式等高级部分,从1开始记录学习python的历程(之前学过一遍,都忘记了)# n = 3# m = 2# print("m+n=", m + n)# print("********")# print("+ hello Python")# print("/////////")## import math# print(math.sqrt(10))# from math import *# print(sqrt(8))# print(bin(20)) #二进制.原创 2020-10-06 00:29:52 · 471 阅读 · 0 评论