上一页 1 2 3 4 5 6 7 8 9 10 ··· 32 下一页
2024年1月31日
摘要: #coding:utf-8 import requests def request_big_data(url): name = url.split('/')[-1] r = requests.get(url,stream=True) #stream =True 设置为流读取 with open("d 阅读全文
posted @ 2024-01-31 10:18 boye169 阅读(138) 评论(0) 推荐(0)
2024年1月30日
摘要: import re s="2023-12-23 14:34:56|liming|20230789" parren="(?P<time>^\d+-\d+-\d+\s\d+:\d+:\d+)\|(?P<name>[\w]+)\|(?P<number>\d+)$" g=re.search(parren,s 阅读全文
posted @ 2024-01-30 15:09 boye169 阅读(114) 评论(0) 推荐(0)
2024年1月23日
摘要: String数据类型 String是redis最基本的类型,最大能存储512MB的数据,String类型是二进制安全的,即可以存储任何数据、比如数字、图片、序列化对象等 set /get / append / strlen/ del set key value #存放数据 get key value 阅读全文
posted @ 2024-01-23 15:02 boye169 阅读(20) 评论(0) 推荐(0)
2024年1月19日
摘要: 创建目录 mkdir -p {a,b,c}/src 批量创建文件 touch file{1..10}.txt touch file{a,b}.txt 阅读全文
posted @ 2024-01-19 15:55 boye169 阅读(291) 评论(0) 推荐(0)
2024年1月18日
摘要: import requests from PIL import Image from io import BytesIO # 设置会话,保持会话状态 s = requests.Session() # 发送获取验证码的请求 response = s.get('https://kyfw.12306.cn 阅读全文
posted @ 2024-01-18 10:25 boye169 阅读(57) 评论(0) 推荐(0)
2024年1月16日
摘要: 安装etcd、kubernetes Kubernetes中几乎所有的资源对象(Node、Pod、Replication Controller、Service等)都能通过kubectl工具执行增删改查操作并保存在etcd中持久化存储。因此Kubernetes和etcd密不可分。可在root权限下,输入 阅读全文
posted @ 2024-01-16 16:58 boye169 阅读(125) 评论(0) 推荐(0)
2024年1月3日
摘要: 如何使用群机器人 在终端某个群组添加机器人之后,创建者可以在机器人详情页看的该机器人特有的webhookurl。开发者可以按以下说明a向这个地址发起HTTP POST 请求,即可实现给该群组发送消息。下面举个简单的例子.假设webhook是:https://qyapi.weixin.qq.com/c 阅读全文
posted @ 2024-01-03 09:58 boye169 阅读(493) 评论(0) 推荐(0)
2023年12月28日
摘要: #!/bin/bash func() { echo "Usage:" echo "test.sh [-j S_DIR] [-m D_DIR]" echo "Description:" echo "S_DIR,the path of source." echo "D_DIR,the path of d 阅读全文
posted @ 2023-12-28 11:09 boye169 阅读(20) 评论(0) 推荐(0)
2023年12月19日
摘要: https://cloud.tencent.com/document/product/1278/46716 # -*- coding: utf-8 -*- import hashlib, hmac, json, os, sys, time from datetime import datetime 阅读全文
posted @ 2023-12-19 15:24 boye169 阅读(68) 评论(0) 推荐(0)
2023年12月5日
摘要: select id,group_concat(distinct age) from test_group_concat group by id; select id,group_concat(id,'_', age SEPARATOR ';') from test_group_concat grou 阅读全文
posted @ 2023-12-05 17:08 boye169 阅读(18) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 10 ··· 32 下一页