asyncio 快速使用 import asyncio async def request(url): print("request正在执行 %s"%url) print("request执行完成 %s"%url) # 创建实践循环 event_loop = asyncio.get_event_lo ...
分类:
其他好文 时间:
2020-06-24 23:22:54
阅读次数:
80
效果图 功能 实现bar左右拖拽 左侧:js通过width控制 :style="{width: lwidth}" 右侧:盒子设置定位position,js通过的left来控制,同时样式需要设置 right: 0; bottom: 0; 才会出现width 中间:设置定位position,使用calc ...
分类:
其他好文 时间:
2020-06-24 19:53:14
阅读次数:
108
1 from aip import AipSpeech 2 import requests 3 import json 4 import speech_recognition as sr 5 import win32com.client 6 from selenium import webdrive ...
分类:
其他好文 时间:
2020-06-24 18:11:47
阅读次数:
53
https://help.extensis.com/hc/en-us/articles/360008494153-How-to-rebuild-the-Font-Cache-in-Windows-Universal-Type-Client-6 System File Checker系统文件bai检查 ...
分类:
其他好文 时间:
2020-06-24 14:20:40
阅读次数:
58
1.Structural Patterns(结构模式) 1.Adapter 适配器 将某个类/接口转换为client期望的其他形式 通过增加一个接口,将已存在的子类封装起来,client面向接口编程,从而隐藏了具体实现子类 举例说明: 如果有一个类LegacyRectangle中一个方法展示一个左上 ...
分类:
其他好文 时间:
2020-06-23 19:09:12
阅读次数:
43
头文件 #pragma once #include "pch.h" class CGridCtrl : public CWnd { public: void Create(CWnd* pParent, DWORD dwStyle, RECT rect, UINT nId); void InsertC ...
分类:
编程语言 时间:
2020-06-23 19:01:05
阅读次数:
64
装饰模式核心内容: 观察者模式又称为发布订阅模式,定义了对象间的一对多依赖关系,当一个对象状态发生改变时,其相关依赖的其他对象都能接收到通知; 观察者模式的核心在于目标(Subject)和观察者(Observer)接口,目标有一个状态属性,观察者“订阅”这个目标,当目标的状态属性发生改变时,通知所有 ...
分类:
其他好文 时间:
2020-06-23 17:06:41
阅读次数:
50
备份文件: # CentOS-Base.repo # # The mirror system uses the connecting IP address of the client and the # update status of each mirror to pick mirrors tha ...
分类:
其他好文 时间:
2020-06-23 11:43:38
阅读次数:
63
假设我们有一段程序,从 Redis 中读取数据,解析以后提取出里面的 name 字段: import json import redis client = redis.Redis() def read(): while True: data = client.lpop('info') if data ...
分类:
编程语言 时间:
2020-06-22 22:57:03
阅读次数:
55
gclient config https://chromium.googlesource.com/v8/v8 chromium 代理完美解决办法 #git的代理设置 git config --global http.proxy http://127.0.0.1:1081 git config --g ...
分类:
其他好文 时间:
2020-06-22 21:11:11
阅读次数:
98