上一页 1 ··· 37 38 39 40 41 42 43 44 45 ··· 125 下一页
摘要: [DllImport("user32.dll")]//拖动无窗体的控件 public static extern bool ReleaseCapture(); [DllImport("user32.dll")] public static extern bool SendMessage(IntPtr 阅读全文
posted @ 2024-04-12 14:43 txwtech 阅读(15) 评论(0) 推荐(0)
摘要: if (textBox_username.Text=="L8xxx87xxx5" && textBox_Text=="txw") 翻译 搜索 复制 阅读全文
posted @ 2024-04-10 08:10 txwtech 阅读(15) 评论(0) 推荐(0)
摘要: #双边滤波,代码实现 import numpy as np import math import cv2 def getClosenessHeight(sigma_g,H,W): r,c = np.mgrid[0:H:1,0:W:1] r-=(H-1)/2 c-=(W-1)/2 closeWeigh 阅读全文
posted @ 2024-04-07 15:54 txwtech 阅读(219) 评论(0) 推荐(0)
摘要: numpy.exp():返回e的幂次方,e是 常数,2.71828 np.power(): 计算 x 的 y 次方。 import numpy as np #计算常数e的幂次方 np.exp(2) #计算 x 的 y 次方 np.power(3,2) exp,高等数学里以自然常数e为底的指数函数,它 阅读全文
posted @ 2024-04-02 08:49 txwtech 阅读(324) 评论(0) 推荐(0)
摘要: import random import cv2 import numpy as np from datetime import datetime import math def printWithdate(str): time2 = datetime.now() time2a = time2.st 阅读全文
posted @ 2024-03-29 16:43 txwtech 阅读(76) 评论(0) 推荐(0)
摘要: import { error } from "jquery" function open_door() {console.log('door is opened')} function GetValue():string{ return 'ok' } open_door() let value2 = 阅读全文
posted @ 2024-03-29 10:49 txwtech 阅读(21) 评论(0) 推荐(0)
摘要: TypeScript(ts) worker_threads.Worker类代码示范 TypeScript中worker_threads.Worker类的典型用法示范 1: Promise return new Promise((resolve, reject) => { const worker = 阅读全文
posted @ 2024-03-29 10:45 txwtech 阅读(493) 评论(0) 推荐(0)
摘要: import { extend } from "jquery" //映射类型 type Account ={ id:number isEmployee:boolean notes:string[] } //所有字段都是可选的 type OptionalAccount={ [k in keyof Ac 阅读全文
posted @ 2024-03-28 08:03 txwtech 阅读(136) 评论(0) 推荐(0)
摘要: JSX经编译后变成React.createElement调用, 因此必须在使用JSX的每个文件中导入React库, 这样在作用域中才有名为React的变量: import React from 'react' 倘若忘记也不用担心,TypeScript会提醒你的:<ul /> // Error TS2 阅读全文
posted @ 2024-03-27 16:18 txwtech 阅读(23) 评论(0) 推荐(0)
摘要: //类和继承 type Color2 ='Black'|'White' type File2 ='A'|'B'|'C'|'D'|'E'|'F'|'G'|'H' type Rank2 = 1|2|3|4|5|6|7|8 //1 class Position { constructor( public 阅读全文
posted @ 2024-03-27 14:09 txwtech 阅读(87) 评论(0) 推荐(0)
上一页 1 ··· 37 38 39 40 41 42 43 44 45 ··· 125 下一页