""" 抓取 解析 存储 """ import re #import ast from urllib import parse from datetime import datetime import random import requests import time import redis f ...
分类:
移动开发 时间:
2020-07-10 19:13:28
阅读次数:
79
定义线程池 第一步,先在Spring Boot主类中定义一个线程池,比如: @SpringBootApplication public class Application { public static void main(String[] args) { SpringApplication.run ...
分类:
编程语言 时间:
2020-07-10 18:41:19
阅读次数:
69
python中数据类型转换 python中list和str互转 1、list转str 假设有一个名为test_list的list,转换后的str名为test_str 则转换方法: test_str = "".join(test_list) 例子: 需要注意的是该方法需要list中的元素为字符型,若是 ...
分类:
编程语言 时间:
2020-07-10 17:26:04
阅读次数:
71
/** * 中断当前线程; * * 如果这个线程被wait(), join(), sleep()所阻塞, * 那么线程的中断状态将被清除,同时,会抛出一个InterruptedException; * * <p> If this thread is blocked in an invocation ...
分类:
其他好文 时间:
2020-07-10 17:17:49
阅读次数:
75
1. 图片验证码生成 图片验证码生成,可以直接作为第三方库引用放在django项目中 #!/usr/bin/env python # -*- coding: utf-8 -*- import random import string import os.path from io import Byt ...
分类:
其他好文 时间:
2020-07-10 15:12:52
阅读次数:
58
SELECT users.UserID AS Id, users.UserName, users.TrueName, users.Phone, users.Email, STUFF( ( SELECT ',' + roles.Description FROM Accounts_UserRoles u ...
分类:
其他好文 时间:
2020-07-10 15:11:25
阅读次数:
65
【注:本文转自 https://blog.csdn.net/u012410733/article/details/63684663】 【注意】:Oracle数据库支持full join,mysql是不支持full join的,但仍然可以同过左外连接+ union+右外连接实现 初始化SQL语句: / ...
分类:
数据库 时间:
2020-07-10 13:33:02
阅读次数:
85
一段MySQL,大概是这样 set @bl='value'; #定义变量 子查询1 子查询2 子查询3的where条件都用到了 select ... from( #子查询1(用到@bl) union #子查询2(用到@bl) union #子查询3(用到@bl) ) left join(子查询4) ...
分类:
数据库 时间:
2020-07-10 11:49:25
阅读次数:
79
1 # 边框线 2 border_set = Border(left=Side(border_style='thin', color='000000'), 3 right=Side(border_style='thin', color='000000'), 4 top=Side(border_sty ...
分类:
其他好文 时间:
2020-07-10 09:58:10
阅读次数:
188
一. 基本概念(https://blog.csdn.net/xianzhen376/article/details/89810958) 双流Join是Flink面试的高频问题。一般情况下说明以下几点就可以hold了: 1.join大体分类有两种:window join和interval join。w ...
分类:
其他好文 时间:
2020-07-10 00:11:46
阅读次数:
84