摘要:
import itertools def twentyfour(cards): '''史上最短计算24点代码''' results = [] for nums in itertools.permutations(cards): # 四个数 for ops in itertools.product('
阅读全文
posted @ 2021-08-01 20:21
CrossPython
阅读(110)
推荐(0)
摘要:
sdk setting, check the sdk dictionary, copy, open , setting project structure, update sdk done.
阅读全文
posted @ 2021-07-24 13:32
CrossPython
阅读(130)
推荐(0)
摘要:
Android7.0 之后默认不信任用户添加到系统的CA证书了,所以我们需要安装到系统里去。默认你已经配置好了Charles,不会的网上查下,这边我配置的是*:*,你根据需要自己配置首先你的手机得ROOT,打开Charles->Help->SSL Proxying->Save Charles Roo
阅读全文
posted @ 2021-07-16 21:50
CrossPython
阅读(51)
推荐(0)
摘要:
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
阅读全文
posted @ 2021-07-05 11:16
CrossPython
阅读(176)
推荐(0)
摘要:
//*[@id="AspNetPager1"]/a[last()]
阅读全文
posted @ 2021-07-02 15:01
CrossPython
阅读(242)
推荐(0)
摘要:
import pytesseract from PIL import Image import time import cv2 image = Image.open('2.png') image = image.convert('L') #先转灰度 # image = image.convert('
阅读全文
posted @ 2021-06-19 17:50
CrossPython
阅读(68)
推荐(0)
摘要:
上述程序在windows平台运行时,会发现有黑色的控制台窗口一闪而过的画面,不太友好。 略微修改了pytesseract.py(C:\Python27\Lib\site-packages\pytesseract目录下),把上述过程进行了隐藏。 # modified by zhongtang hide
阅读全文
posted @ 2021-06-19 16:15
CrossPython
阅读(202)
推荐(0)
摘要:
declare @tempTb Table(id nvarchar(64), FGID nvarchar(64),FGshuruma nvarchar(64),status int,wuliaoid nvarchar(64),shuruma nvarchar(64),danweiname nvarc
阅读全文
posted @ 2021-06-13 19:19
CrossPython
阅读(36)
推荐(0)
摘要:
id,zhiliangdengjiid,type1,wuliaoid,danhao,lingliao,type2 select * from (select a.id,a.zhiliangdengjiid,a.type1,b.wuliaoid,b.danhao,b.lingliao,b.type2
阅读全文
posted @ 2021-05-30 18:42
CrossPython
阅读(53)
推荐(0)
摘要:
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
阅读全文
posted @ 2021-05-25 20:25
CrossPython
阅读(57)
推荐(0)
摘要:
nvarchar类型对中文字段可以正常解码显示,但是varchar类型中文读取异常。所以字段设计最好用nvarchar类型存储中文,对于已经存在的问题,可以有两种解决方式: 1.修改表中字段对类型,将varchar改为nvarchar 2.采用手动编码解码方式可以解决乱码问题,data.encode
阅读全文
posted @ 2021-05-20 07:19
CrossPython
阅读(350)
推荐(0)
摘要:
有时需要以某一字段作为分组,筛选每一组的另一字段值最大(或最小)的记录。例如,有如下表 app,存储了 app 的 ID、名称、版本号等信息。现在要筛选出每个 app 版本最大的记录。 方法一 SELECT a.* FROM app a WHERE a.app_version = (SELECT M
阅读全文
posted @ 2021-05-09 09:25
CrossPython
阅读(1289)
推荐(0)
摘要:
Flutter plugin not installed 最诡异,命名AS上安装过了。是因为flutter配置中 并不知道AS的根目录路径,需要加上AS的路径(bin路径,如图) 终端输入: flutter config --android-studio-dir=“C:\Program Files\
阅读全文
posted @ 2021-02-19 15:16
CrossPython
阅读(82)
推荐(0)
摘要:
import pyautoguifrom pynput.keyboard import Listenerimport logging# 反复执行:win + r和esc 20次# i = 0# while i<20:# pyautogui.hotkey('win', 'r')# pyautogui.
阅读全文
posted @ 2021-02-06 16:00
CrossPython
阅读(497)
推荐(0)
摘要:
# -*- coding: utf-8 -*-import win32com.clientimport os#剪切板import win32clipboard as wcimport win32conexcel = win32com.client.Dispatch('Excel.Applicatio
阅读全文
posted @ 2021-02-06 15:04
CrossPython
阅读(201)
推荐(0)
摘要:
使用UltraEdit等二进制编辑工具打开数据库文件,通过查找“DBA”(二进制使用“44 42 41”),定位到底一个位置,注意观察这个区域,前面一般有“dbo”、“PUBLIC”,后面有“SYS”。这个区域就是ASA保存用户口令的数据段。 把“SYS”之前四个空字符“00 00 00 00”之前
阅读全文
posted @ 2020-05-28 14:48
CrossPython
阅读(1163)
推荐(0)
posted @ 2019-10-17 08:01
CrossPython
阅读(373)
推荐(0)
摘要:
import 'package:flutter/material.dart'; main() => runApp(MaterialApp( home: HomePage(), )); class HomePage extends StatefulWidget { @override State createState() { return HomePageState();...
阅读全文
posted @ 2019-06-14 13:54
CrossPython
阅读(254)
推荐(0)
摘要:
stl => statelessstf => statefulalt+enter, select element => add pading or somethingselect children and press alt+enter => add into column/row or somet
阅读全文
posted @ 2019-06-03 13:43
CrossPython
阅读(368)
推荐(0)
摘要:
https://medium.com/flutter-community/flutter-ide-shortcuts-for-faster-development-2ef45c51085b If you’re new to Flutter development then you must be c
阅读全文
posted @ 2019-06-03 11:22
CrossPython
阅读(437)
推荐(0)
摘要:
self: main screen:
阅读全文
posted @ 2019-06-02 09:04
CrossPython
阅读(209)
推荐(0)
摘要:
import 'package:flutter/material.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'dart:ui'; main()=>runApp(MaterialApp( home: MyApp(), )); class MyApp extends Statef...
阅读全文
posted @ 2019-05-31 09:35
CrossPython
阅读(1620)
推荐(0)
摘要:
import 'dart:io'; import 'dart:convert'; import 'package:path/path.dart'; import 'package:web_socket_channel/io.dart'; //https://dldir1.qq.com/qqfile/qq/PCQQ9.1.3/25323/QQ9.1.3.25323.exe String...
阅读全文
posted @ 2019-05-30 10:54
CrossPython
阅读(266)
推荐(0)
摘要:
Flutter Platform Channels(一) https://www.jianshu.com/p/33ac774f99b1 https://www.jianshu.com/p/c1e2062cf4f7
阅读全文
posted @ 2019-05-30 09:29
CrossPython
阅读(331)
推荐(0)
摘要:
whois_handler.dart main.dart
阅读全文
posted @ 2019-05-30 09:03
CrossPython
阅读(249)
推荐(0)
posted @ 2019-05-26 09:51
CrossPython
阅读(538)
推荐(0)
摘要:
https://www.v2ex.com/t/567014 跑 aria2 的机器配置比较低,是 j1900+4G 的小机器,系统是 ubuntu18.04 ,所有的任务都是 bt 下载。aria2 的版本是 1.33.1 设置了同时下载的任务最大数量为 30,但经常出现有很多任务一直在等待,但是正
阅读全文
posted @ 2019-05-25 14:29
CrossPython
阅读(2471)
推荐(0)
摘要:
https://blog.csdn.net/little_story/article/details/86543220 https://blog.csdn.net/u011728347/article/details/80664643 https://blog.csdn.net/weixin_342
阅读全文
posted @ 2019-05-24 21:15
CrossPython
阅读(154)
推荐(0)
摘要:
https://askubuntu.com/questions/790633/the-o-parameter-in-aria2c-cant-rename-the-downloaded-file You are out of luck when attempting to rename .torren
阅读全文
posted @ 2019-05-24 15:27
CrossPython
阅读(326)
推荐(0)
摘要:
https://stackoverflow.com/questions/54300081/flutter-popupmenu-on-long-press The OP and the First Answerer bypassed the original problem using PopupMe
阅读全文
posted @ 2019-05-24 13:51
CrossPython
阅读(745)
推荐(0)
摘要:
Linux命令行下如何终止当前程序? 快捷键:
阅读全文
posted @ 2019-05-23 20:31
CrossPython
阅读(7985)
推荐(0)
摘要:
https://github.com/dart-lang/web_socket_channel/issues/38 yes, my workaround is to create a WebSocket directly. Something like: Then I wrap this in a
阅读全文
posted @ 2019-05-23 16:08
CrossPython
阅读(1337)
推荐(0)
摘要:
import 'dart:io';import 'dart:convert';main()async{ File a = File('C:\\aria2\\1.txt'); var c = read(a); print(c); var d = utf8.decode(c); print(d);// await a.writeAsBytes(c+'\ntest');// print(r...
阅读全文
posted @ 2019-05-23 09:15
CrossPython
阅读(3452)
推荐(0)
摘要:
https://github.com/q3aql/aria2-static-builds https://github.com/aria2/aria2/issues/781
阅读全文
posted @ 2019-05-22 22:11
CrossPython
阅读(332)
推荐(0)
posted @ 2019-05-22 20:38
CrossPython
阅读(573)
推荐(0)
摘要:
aria2c --conf-path=aria2.conf mine: 下面的懒得删了, from internet below, another one:
阅读全文
posted @ 2019-05-22 16:29
CrossPython
阅读(590)
推荐(0)
posted @ 2019-05-22 15:28
CrossPython
阅读(515)
推荐(0)
摘要:
https://blog.csdn.net/suyimin2010/article/details/80552392 https://flutterchina.club/cookbook/networking/web-sockets/ https://www.jianshu.com/p/8f4ddf
阅读全文
posted @ 2019-05-22 15:05
CrossPython
阅读(255)
推荐(0)
摘要:
https://stackoverflow.com/questions/52670255/flutter-json-rpc-2-implementation import 'dart:convert'; import 'package:flutter/material.dart'; import 'package:json_rpc_2/json_rpc_2.dart' as json_rpc;...
阅读全文
posted @ 2019-05-22 08:35
CrossPython
阅读(384)
推荐(0)
摘要:
WRITE_EXTERNAL_STORAGE
阅读全文
posted @ 2019-05-21 21:24
CrossPython
阅读(416)
推荐(0)