会员
周边
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Howhy Blogs
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
7
8
9
10
11
12
13
14
15
···
42
下一页
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
阅读(30)
评论(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
阅读(166)
评论(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
阅读(27)
评论(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
阅读(28)
评论(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
阅读(39)
评论(0)
推荐(0)
2023年11月11日
对象定义 Object.create Object.defineProperty
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="wi
阅读全文
posted @ 2023-11-11 15:25 howhy
阅读(27)
评论(0)
推荐(0)
2023年10月28日
python3知识
摘要: python一切皆对象 python所有对象类型都是type实例 object是所有对象的父类 class MyWith(): def __enter__(self): print('__enter__') return self def __exit__(self, exc_type, exc_v
阅读全文
posted @ 2023-10-28 10:05 howhy
阅读(39)
评论(0)
推荐(0)
2023年10月26日
js 环境
摘要: const jsdom = require("jsdom"); const CryptoJS = require("crypto-js"); const {JSDOM} = jsdom; const dom = new JSDOM(`<!DOCTYPE html><p>Hello world</p>
阅读全文
posted @ 2023-10-26 10:48 howhy
阅读(44)
评论(0)
推荐(0)
2023年9月1日
js hook
摘要: (function(){ var org=window.XMLHttpRequest.prototype.setRequestHeader; window.XMLHttpRequest.prototype.setRequestHeader = function(key,value){ if(key=
阅读全文
posted @ 2023-09-01 14:35 howhy
阅读(31)
评论(0)
推荐(0)
2023年7月19日
python 2023
摘要: 一切对象都是type类创建出来的 一切对象的基类都是object 对象的特点: 1、唯一标识 id() 2、类型 type() 3、值 None类型全局只有一个 a=10 print(id(a)) print(type(a)) print(type(int)) print(a) def fun():
阅读全文
posted @ 2023-07-19 10:06 howhy
阅读(47)
评论(0)
推荐(0)
上一页
1
···
7
8
9
10
11
12
13
14
15
···
42
下一页
公告