随笔分类 -  python

pyton lxml
摘要:爬取网站元素 import requestsfrom lxml import etreeurl =xxxresponse = requests.get(url)//通过请求获取返参html = etree.HTML(response.text)//用etree整理chapter_name = htm 阅读全文

posted @ 2023-03-20 14:44 富兰克林_YY 编辑

python 快排
摘要:def quicksort(arr, left, right): if (left > right): return key = arr[left] i = left j = right while (i != j): while (arr[j] >= key and i < j): j=j-1 w 阅读全文

posted @ 2023-03-20 14:44 富兰克林_YY 编辑

点击右上角即可分享
微信分享提示