摘要:
from exchangelib import DELEGATE, Account, Credentials, Message, Mailbox, HTMLBody def Email(to, subject, body): creds = Credentials( username='a@live 阅读全文
摘要:
使用命令pg_ctl.exe register -N “pgsql” -D “C:\Program Files\PostgreSQL\12\data” 将postgresql注册为服务执行net start pgsql 启动服务pgsql连接默认用户名为本机系统用户名 密码任意 即可使用工具连接po 阅读全文
摘要:
I have below code in flutter. In initialRoute: attribute, it needs to call isLoggedIn() method which is an async function. I got an error saying I nee 阅读全文
摘要:
question: Let's assume that an initialization of MyComponent in Dart requires sending an HttpRequest to the server. Is it possible to construct an obj 阅读全文
摘要:
现代手机屏幕尺寸各不相同,导致我们平时写布局的时候会在个不同的移动设备上显示的效果不同。 为了达到一套代码所有手机体验一致效果,需要做尺寸上的适配。 适配方案: 计算公式:实际尺寸 = UI尺寸 * 设备宽度/设计图宽度 1px方案 : 1px = 1 / 设备像素比 实现代码如下(以750设计图为 阅读全文
摘要:
#include <stdio.h> #include <stdbool.h> void PrintAll(int a[], int nBegin, int nEnd, int nCount, char* szPre){ if(nCount==1){ for(int i=nBegin; i<=nEn 阅读全文
摘要:
//改变数组长度 #include <iostream> using namespace std; // #ifndef CHANGELENGTH1D_H #define CHANGELENGTH1D_H #include<stdexcept> #include<algorithm> templat 阅读全文
摘要:
select a.guigename,a.thisdayguigeprice,a.createdate from dailystandardguigeprice as a inner join (select guigename,max(createdate) as mcreatedate from 阅读全文
摘要:
Microsoft IIS creates something called AppPool. By default you will have a user IIS AppPool\DefaultAppPool. That user needs to have permissions to you 阅读全文
摘要:
views.py中:定义一个global_settings函数,先把全局变量都引入过来,然后再返回:def global_setting(request):#注意有request参数 SITE_DESC = settings.SITE_DESC SITE_NAME = settings.SITE_N 阅读全文
摘要:
<a href="{{url_for('test')}}">我是测试</a> <button onclick="window.location.href='{{ url_for("test") }}'">点我啊</button> <button onclick="{{ url_for("test") 阅读全文
摘要:
rom flask import Flask,render_template app = Flask(__name__,template_folder='templates',static_folder='static',static_url_path='/static'·) @app.route( 阅读全文
摘要:
for /L %i in (1 1 3) do @(Bwn https://ww****371J?p=%i) 阅读全文
摘要:
conn = ... charset='cp936' 阅读全文
摘要:
Sub test()' Dim s As Collection '定义s变量为集合对象' Set s = New Collection '初始化集合对象s (否则无法使用) Dim s As New Collection '推荐这句代码,直接初始化,可以不用再Set了 '集合s中添加元素的方法 Fo 阅读全文
摘要:
Win + R => 运行 输入:rundll32.exe sysdm.cpl,EditEnvironmentVariables 点击确定,会弹出编辑环境变量窗口 阅读全文
摘要:
https://www.cnblogs.com/xingag/p/15196124.html 1. 前言 大家好,我是安果! 一提到自动化,可能大家想到的是 App 端的 Appium、Airtest、AutoJS,亦或是 Selenium、Puppeteer、Cypress 等 Web 端的自动化 阅读全文
摘要:
docmd.openformdocmd.runsqldocmd.close Access在窗体间传递参数的几种常用办法 在Office Access 实际开发应用中,常常需要在窗体间传递参数。把我10多年为企业开发Access管理系统过程中的一些经验总结了一下。 常用的几种参数传递方法有如下几种: 阅读全文
摘要:
import win32com.client as win32 import pythoncom pythoncom.CoInitialize() def send_mail(**kwargs): outlook = win32.Dispatch('Outlook.Application') rec 阅读全文
摘要:
string .encode("utf-8").decode("latin1") 阅读全文
摘要:
import itertools def twentyfour(cards): '''史上最短计算24点代码''' results = [] for nums in itertools.permutations(cards): # 四个数 for ops in itertools.product(' 阅读全文
摘要:
sdk setting, check the sdk dictionary, copy, open , setting project structure, update sdk done. 阅读全文
摘要:
Android7.0 之后默认不信任用户添加到系统的CA证书了,所以我们需要安装到系统里去。默认你已经配置好了Charles,不会的网上查下,这边我配置的是*:*,你根据需要自己配置首先你的手机得ROOT,打开Charles->Help->SSL Proxying->Save Charles Roo 阅读全文
摘要:
create table #BOM1(ID int not null primary key,PARENT VARCHAR(10),TYPE1 VARCHAR(10),) insert into #BOM1values(1,'FG1','FG'),(2,'FG2','FG'),(3,'FG1','F 阅读全文
摘要:
//*[@id="AspNetPager1"]/a[last()] 阅读全文
摘要:
import pytesseract from PIL import Image import time import cv2 image = Image.open('2.png') image = image.convert('L') #先转灰度 # image = image.convert(' 阅读全文
摘要:
上述程序在windows平台运行时,会发现有黑色的控制台窗口一闪而过的画面,不太友好。 略微修改了pytesseract.py(C:\Python27\Lib\site-packages\pytesseract目录下),把上述过程进行了隐藏。 # modified by zhongtang hide 阅读全文
摘要:
declare @tempTb Table(id nvarchar(64), FGID nvarchar(64),FGshuruma nvarchar(64),status int,wuliaoid nvarchar(64),shuruma nvarchar(64),danweiname nvarc 阅读全文
摘要:
id,zhiliangdengjiid,type1,wuliaoid,danhao,lingliao,type2 select * from (select a.id,a.zhiliangdengjiid,a.type1,b.wuliaoid,b.danhao,b.lingliao,b.type2 阅读全文
摘要:
create table #BOM(ID int not null primary key,PARENT VARCHAR(10),TYPE1 VARCHAR(10),SON VARCHAR(10),TYPE2 VARCHAR(10),QTY INT) insert into #BOMvalues(1 阅读全文
摘要:
nvarchar类型对中文字段可以正常解码显示,但是varchar类型中文读取异常。所以字段设计最好用nvarchar类型存储中文,对于已经存在的问题,可以有两种解决方式: 1.修改表中字段对类型,将varchar改为nvarchar 2.采用手动编码解码方式可以解决乱码问题,data.encode 阅读全文
摘要:
有时需要以某一字段作为分组,筛选每一组的另一字段值最大(或最小)的记录。例如,有如下表 app,存储了 app 的 ID、名称、版本号等信息。现在要筛选出每个 app 版本最大的记录。 方法一 SELECT a.* FROM app a WHERE a.app_version = (SELECT M 阅读全文
摘要:
Flutter plugin not installed 最诡异,命名AS上安装过了。是因为flutter配置中 并不知道AS的根目录路径,需要加上AS的路径(bin路径,如图) 终端输入: flutter config --android-studio-dir=“C:\Program Files\ 阅读全文
摘要:
import pyautoguifrom pynput.keyboard import Listenerimport logging# 反复执行:win + r和esc 20次# i = 0# while i<20:# pyautogui.hotkey('win', 'r')# pyautogui. 阅读全文
摘要:
# -*- coding: utf-8 -*-import win32com.clientimport os#剪切板import win32clipboard as wcimport win32conexcel = win32com.client.Dispatch('Excel.Applicatio 阅读全文
摘要:
使用UltraEdit等二进制编辑工具打开数据库文件,通过查找“DBA”(二进制使用“44 42 41”),定位到底一个位置,注意观察这个区域,前面一般有“dbo”、“PUBLIC”,后面有“SYS”。这个区域就是ASA保存用户口令的数据段。 把“SYS”之前四个空字符“00 00 00 00”之前 阅读全文
摘要:
import 'package:flutter/material.dart'; main() => runApp(MaterialApp( home: HomePage(), )); class HomePage extends StatefulWidget { @override State createState() { return HomePageState();... 阅读全文
摘要:
stl => statelessstf => statefulalt+enter, select element => add pading or somethingselect children and press alt+enter => add into column/row or somet 阅读全文
摘要:
https://medium.com/flutter-community/flutter-ide-shortcuts-for-faster-development-2ef45c51085b If you’re new to Flutter development then you must be c 阅读全文