会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Howhy Blogs
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
4
5
6
7
8
9
10
11
12
···
39
下一页
2024年1月9日
ThreadPoolExecutor
摘要: from concurrent.futures.thread import ThreadPoolExecutor import requests song_list=[ {'title':'胡广生.mp3','url':'https://webfs.hw.kugou.com/202401081759
阅读全文
posted @ 2024-01-09 11:34 howhy
阅读(24)
评论(0)
推荐(0)
2023年12月27日
tls指纹
摘要: https://tls.browserleaks.com/json from curl_cffi import requests
阅读全文
posted @ 2023-12-27 14:33 howhy
阅读(46)
评论(0)
推荐(0)
2023年12月14日
央视频
摘要: const { default: axios } = require("axios"); const yt = require("crypto-js") const Axios = require("axios") function cc1(){ var e = (new Date).getTime
阅读全文
posted @ 2023-12-14 17:47 howhy
阅读(305)
评论(0)
推荐(0)
2023年12月7日
python __new__ __init__
摘要: class Student(): def __new__(cls, *args, **kwargs):##创建类的实例 print('__new__') return object.__new__(cls)##此处返回才会调用__init__ def __init__(self):##初始化类的实例
阅读全文
posted @ 2023-12-07 11:34 howhy
阅读(11)
评论(0)
推荐(0)
2023年12月6日
python 协程
摘要: python :用@asyncio.coroutine装饰器生成的对象是一个生成器对象 但不是协程对象 用async 定义的函数对象不是一个生成器,但是一个协程对象 import asyncio from collections.abc import Coroutine,Generator @asy
阅读全文
posted @ 2023-12-06 14:43 howhy
阅读(19)
评论(0)
推荐(0)
2023年12月5日
python 可迭代对象 迭代器 生成器
摘要: 一个对象若要用for 循环 则需实现def __iter__(self, item) 或def __iter__(self, item)方法 可迭代对象 实现了def __iter__(self, item)方法 迭代器 实现了def __iter__(self, item)和def __next_
阅读全文
posted @ 2023-12-05 17:06 howhy
阅读(17)
评论(0)
推荐(0)
2023年12月4日
python Thread ThreadPoolExecutor,as_completed
摘要: import threading from concurrent.futures import ThreadPoolExecutor,as_completed,wait import time # # def task(name): # print('task: %s'%name) local_da
阅读全文
posted @ 2023-12-04 18:23 howhy
阅读(144)
评论(0)
推荐(0)
2023年12月1日
python装饰器
摘要: import time def wrapper(type): print('start ',type) def outter(fun): def inner(*args,**kwargs): start_time = time.time() fun(*args,**kwargs) end_time=
阅读全文
posted @ 2023-12-01 10:07 howhy
阅读(13)
评论(0)
推荐(0)
2023年11月28日
设计模式
摘要: var observer={ list:[], subscribe:function(key,fn){ if(!this.list[key]){ this.list[key]=[] } this.list[key].push(fn) }, publish:function(){ const key=
阅读全文
posted @ 2023-11-28 10:39 howhy
阅读(13)
评论(0)
推荐(0)
2023年11月15日
js 对象深拷贝
摘要: function deepObj(obj){ var dest={}; for(var key in obj){ if(typeof obj[key] 'object'){ dest[key]=obj[key].constructor Array?[]:{}; deepObj(dest[key],o
阅读全文
posted @ 2023-11-15 16:39 howhy
阅读(23)
评论(0)
推荐(0)
上一页
1
···
4
5
6
7
8
9
10
11
12
···
39
下一页
公告