- 博客(8)
- 收藏
- 关注
原创 python爬取小说
import requestsimport parseldef getBook(chapterNum): chapterNum = chapterNum + 393828 url = "https://m.xinshuhaige.net/50656/" + str(chapterNum) + ".html" htmlContent = requests.get(url).text titleIndex1 = htmlContent.find("headline") +
2022-05-10 17:17:23
158
原创 Python获取A股数据,生成折线图
Python获取A股数据,生成折线图获取数据文件:import jsonimport reimport timefrom lxml import etreeimport requestsimport matplotlib.pyplot as pltfrom interval import Intervalheaders = {"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KH
2021-08-31 11:35:11
388
原创 Error downloading packages: python-libs-2.7.5-89.el7.x86_64: [Errno 256] No more mirrors to try.
Error downloading packages:python-libs-2.7.5-89.el7.x86_64: [Errno 256] No more mirrors to try.依次执行下面三条语句
2020-11-17 10:24:14
1556
原创 2020-09-11
二叉树的最大深度题目描述求二叉树的最大深度,最大深度指的是,根结点到最远叶子结点经历的结点个数。import java.util.*;/* * public class TreeNode { * int val = 0; * TreeNode left = null; * TreeNode right = null; * } */public class Solution { /** * * @param root TreeNode类
2020-09-11 08:21:34
73
原创 2020-09-11
反转链表public class ListNode{ int val; ListNode next = null; ListNode(int val){ this.val = val; }}public class Solution{ public ListNode ReversList(ListNode head){ ListNode res = new ListNode(0);//头结点用于指向要返回的链表 ListNode curr = head; //curr用于指向当
2020-09-11 08:09:16
54
原创 2020-09-05
IDEA新建的xml文件图标灰色File-Settings在Text框下面找到*.xml,选中用右边“-”去掉在Xml框下面添加*.xml
2020-09-05 12:04:58
60
原创 Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test)
Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test)在pom.xml中添加插件<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId>
2020-09-01 22:34:27
126
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人