上一页 1 2 3 4 5 6 7 ··· 30 下一页
2024年2月1日
摘要: __init__、__new__、__del__ 构造方法__new__ 触发时机: 实例化对象时自动触发(在__init__之前触发) 参数:至少一个cls 接收当前类,其他参数根据初始化方法参数决定 返回值:必须返回一个对象实例,没有返回值,则实例化对象的结果为None 作用:实例化对象 注意: 阅读全文
posted @ 2024-02-01 15:33 boye169 阅读(4) 评论(0) 推荐(0) 编辑
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 阅读(88) 评论(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 阅读(5) 评论(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 阅读(2) 评论(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 阅读(218) 评论(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 阅读(29) 评论(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 阅读(95) 评论(0) 推荐(0) 编辑
2024年1月3日
摘要: 如何使用群机器人 在终端某个群组添加机器人之后,创建者可以在机器人详情页看的该机器人特有的webhookurl。开发者可以按以下说明a向这个地址发起HTTP POST 请求,即可实现给该群组发送消息。下面举个简单的例子.假设webhook是:https://qyapi.weixin.qq.com/c 阅读全文
posted @ 2024-01-03 09:58 boye169 阅读(122) 评论(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 阅读(1) 评论(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 阅读(14) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 30 下一页