上一页 1 ··· 25 26 27 28 29 30 31 32 33 ··· 38 下一页
摘要: #导入模块 import xlwt # 创建一个workbook 设置编码 workbook = xlwt.Workbook(encoding='utf-8') # 创建一个worksheet file = workbook.add_sheet('POS运营简报') # 保存excel文件 work 阅读全文
posted @ 2021-03-16 15:25 Bonnie_ξ 阅读(396) 评论(0) 推荐(0) 编辑
摘要: https://mp.weixin.qq.com/s/20NA74bOhTNUwjIYiHCoqA 在项目开发过程中,不管是对底层数据库的操作过程,还是业务层的处理过程,还是控制层的处理过程,都不可避免会遇到各种可预知的、不可预知的异常需要处理。如果对每个过程都单独作异常处理,那系统的代码耦合度会变 阅读全文
posted @ 2021-03-11 17:18 Bonnie_ξ 阅读(632) 评论(0) 推荐(0) 编辑
摘要: https://mp.weixin.qq.com/s/iRm8x5KW0WXyrc18YK9-FAhttps://mp.weixin.qq.com/s/TF_CAtXI16Pxnj1lLn3M7A 阅读全文
posted @ 2021-03-11 17:08 Bonnie_ξ 阅读(53) 评论(0) 推荐(0) 编辑
摘要: https://mp.weixin.qq.com/s/yg8eK8In1qAreLyM_XxnxA 一、分析网页 以经典的爬取豆瓣电影 Top250 信息为例。每条电影信息在 ol class 为 grid_view 下的 li 标签里,获取到所有 li 标签的内容,然后遍历,就可以从中提取出每一条 阅读全文
posted @ 2021-03-11 17:06 Bonnie_ξ 阅读(544) 评论(0) 推荐(0) 编辑
摘要: 首先在POM.xml中加入GAV <dependency> <groupId>cn.hutool</groupId> <artifactId>hutool-all</artifactId> <version>5.0.7</version> </dependency> <dependency> <gr 阅读全文
posted @ 2021-02-04 16:57 Bonnie_ξ 阅读(2154) 评论(0) 推荐(0) 编辑
摘要: 在项目开发中,接口与接口之间,前后端之间数据的传输都使用 Json 格式,在 Spring Boot 中,接口返回 Json 格式的数据很简单,在 Controller 中使用@RestController注解即可返回 Json 格式的数据,@RestController也是 Spring Boot 阅读全文
posted @ 2021-02-04 16:53 Bonnie_ξ 阅读(721) 评论(0) 推荐(0) 编辑
摘要: 示例1:Java 8中获取今天的日期 Java 8 中的 LocalDate 用于表示当天日期。和java.util.Date不同,它只有日期,不包含时间。当你仅需要表示日期时就用这个类。 package com.shxt.demo02; import java.time.LocalDate; pu 阅读全文
posted @ 2021-02-04 16:43 Bonnie_ξ 阅读(89) 评论(0) 推荐(0) 编辑
摘要: 1. 单个位置的字符串提取 这种情况我们可以使用(.+?)这个正则表达式来提取. 举例,一个字符串"a123b",如果我们想提取ab之间的值123,可以使用findall配合正则表达式,这样会返回一个包含所以符合情况的list,代码如下: import re str = "a123b" print 阅读全文
posted @ 2021-02-01 10:52 Bonnie_ξ 阅读(1771) 评论(0) 推荐(0) 编辑
摘要: import time import requests from selenium import webdriver import os from selenium.webdriver.chrome.options import Options chrome_options = Options() 阅读全文
posted @ 2021-02-01 10:41 Bonnie_ξ 阅读(168) 评论(0) 推荐(0) 编辑
摘要: python字典遍历的几种方法 (1)遍历key值 >>> a {'a': '1', 'b': '2', 'c': '3'} >>> for key in a: print(key+':'+a[key]) a:1 b:2 c:3 >>> for key in a.keys(): print(key+ 阅读全文
posted @ 2021-01-31 16:30 Bonnie_ξ 阅读(278) 评论(0) 推荐(0) 编辑
上一页 1 ··· 25 26 27 28 29 30 31 32 33 ··· 38 下一页