- 博客(32)
- 资源 (14)
- 问答 (1)
- 收藏
- 关注
原创 utility CaculateUtil.py
def new_round(_float, _len=0): if str(_float)[-1] == '5': return int(round(float(str(_float)[:-1]+'6'), _len)) else: return int(round(_float, _len))
2019-11-22 23:16:02
167
原创 GetChart.py
import osfrom AnalyzeLog import trans_2_amc_json, trans_2_pl_json, trans_2_calc_pl_jsonfrom GenerateChart import generate_ulThroughputimport json data_line_num = 22origin_log = 'a.txt'amc_js...
2019-11-07 20:49:12
173
原创 GetChart.py
import osfrom AnalyzeLog import trans_2_amc_json, trans_2_pl_json, trans_2_calc_pl_jsonfrom GenerateChart import generate_ulThroughputimport json data_line_num = 22origin_log = 'a.txt'amc_js...
2019-11-07 20:32:39
241
原创 GenerateChart.py
import osfrom LogUtil import get_json_logimport jsondef generate_ulThroughput(calc_pl_json): data = get_json_log(calc_pl_json) max_pl = data[str(len(data)-1)]['ulPL'] ulThroughput = da...
2019-11-07 16:08:33
218
原创 char.json
{ "title" : { "text": "THROUGHPUT", "subtext": "TEST" },"tooltip" : { "trigger": "axis"},"legend": { "data":["Standard","Current"]},"toolbox": { "show" : "true...
2019-11-07 11:32:22
282
转载 Android Studio 快捷键
https://www.jianshu.com/p/6de16b5554ec最常用快捷键Ctrl+Alt+V,提取局部变量Ctrl+Alt+F,提取全局变量Ctrl+Alt+M,提取方法Ctrl+E,可以显示最近编辑的文件列表Shift+Click,可以关闭文件Ctrl+[或],可以跳到大括号的开头结尾Ctrl+Shift+Backspace,可以跳转到上次编辑的地方Ctrl...
2019-10-02 00:28:28
117
原创 HOOK MOUSE_EVENT
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Reflection;using System.Runtime.InteropServices;...
2019-10-01 18:54:35
358
原创 数据处理
1. DataTable 添加数据 DataTable dt = new DataTable(); dt.Columns.Add("Id", typeof(System.Int32)); dt.Columns.Add("Name", typeof(System.String)); DataRow dr ...
2019-08-01 13:56:29
114
原创 C# 界面操作
1. pictureBox文字提示 toolTip1.SetToolTip(pictureBox1, "搜索");2. tableLayoutPanel 跨所有列tableLayoutPanel1.SetColumnSpan(dataGridView1, tableLayoutPanel1.ColumnCount);3. 切换tabPagetabControl1....
2019-08-01 12:37:15
561
转载 python tcp黏包和struct模块解决方法,大文件传输方法及MD5校验
https://www.cnblogs.com/zaizai1573/p/10230973.html一、TCP协议 粘包现象 和解决方案黏包现象让我们基于tcp先制作一个远程执行命令的程序(命令ls -l ; lllllll ; pwd)执行远程命令的模块需要用到模块subprocesssubprocess通过子进程来执行外部指令,并通过input/output/error管道...
2019-04-10 14:07:22
567
转载 用python开发移动App(android、iOS)后台简述
来源:http://www.zhihu.com/collection/38815292?page=11、如果使用python语言,需要学习哪些知识?python作为一门简单明了的语言,非常容易上手,语言层面不会太复杂,稍微有点难度的顶多就是装饰器、元类和少量函数式编程内容。要说学习的话,我觉得更多是一些编程方面通用的东西,比如:数据结构和算法、设计模式、操作系统、计算机网络之类的2、选择什...
2019-04-10 03:32:41
13671
转载 CodeBlocks常用操作快捷键
https://www.cnblogs.com/xminghua/p/6623763.html编辑部分:Ctrl + A:全选Ctrl + C:复制Ctrl + X: 剪切Ctrl + V:粘贴Ctrl + Z:撤销(后退一步)Ctrl + S:保存Ctrl + Y / Ctrl + Shift + Z:重做(也就是前进一步)Ctrl+Shift+C:注释掉当前...
2019-04-03 13:18:55
1409
转载 git 常用操作
git log --since ==2017-09-01 --until=2017-09-28 git log --since=2017-05-21 --until=2017-06-20 --author="author-name"//列出文件的所有改动历史git log --pretty=oneline 文件名//显示具体的某次的改动的修改git show 356f6def9...
2019-03-25 10:14:17
182
原创 grep
grep latest `ls|sort -n -k2 -t _`|awk -F: '{print $8 }'|awk -F, '{print $1}'|uniq05-23:06:51:230 1036649 Module:abc Pri:INF Update: lost&error latest:-32, delta:0, i:0 grep Qi\ = `ls|...
2018-12-06 10:17:01
137
转载 回调函数给主线程传递参数
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Threading.Tasks;using System....
2018-11-29 15:16:33
896
转载 处理跨线程更新Winform UI控件
https://www.cnblogs.com/marshal-m/p/3201051.htmlC#Winform编程中,跨线程直接更新UI控件的做法是不正确的,会时常出现“线程间操作无效: 从不是创建控件的线程访问它”的异常。处理跨线程更新Winform UI控件常用的方法有4种:1. 通过UI线程的SynchronizationContext的Post/Send方法更新;2. 通过UI控件...
2018-11-29 14:37:31
1463
转载 main hdd format and set name
@echo off@rem This script is called by x:\Windows\System32\Startnet.cmd - WinPE@echo.@echo.@echo.@echo Running Intel Optimization powercfg for improved imaging times@echo.@echo call powercfg ...
2018-11-16 10:41:44
823
1
原创 选择系统盘
#!/usr/bin/python#-*- config: UTF-8 -*-import osimport reimport timeimport datetimeimport sysdef write_data(file, data): with open(file, mode='w+') as f: f.write(data) f.cl...
2018-08-16 02:50:00
330
原创 修改文件名, 累加1
#!/usr/bin/python#-*- config: UTF-8 -*-import osimport reimport timeimport datetimedef change_file_name(dirName): allList = os.listdir(dirName) list = [] for x in allList: ...
2018-08-07 20:58:13
479
转载 create table
#!/usr/bin/env python# -*- coding:utf-8 -*-# @Time : 2017/11/22 23:04# @Author : lijunjiang# @File : Creater-tables.pyimport MySQLdb# sql 语句#创建student表Student = ''' create table Stud...
2018-04-03 12:22:19
1502
原创 python ftp
#!/usr/bin/python# -*- coding: UTF-8 -*-import sysimport ftplibimport ConfigParserimport datetimeimport osimport MySQLdb#localhost#10.4.211.158def connect_mysql(): db_config = dict(h...
2018-04-03 11:23:24
211
转载 mysql
#coding=utf-8try: import xml.etree.cElementTree as ET except ImportError: import xml.etree.ElementTree as ET import sys import MySQLdbtry: tree = ET.parse("key.xml") #打开xml文档 #root = ET.fr...
2018-03-12 23:35:03
118
转载 xml
#coding=utf-8try: import xml.etree.cElementTree as ET except ImportError: import xml.etree.ElementTree as ET import sys try: tree = ET.parse("country.xml") #打开xml文档 #root = ET.fromstring...
2018-03-12 22:25:49
121
原创 FFUMain.cmd
@echo This script is for Windows10 Capture FFU USB windows usage @echo ==================== File Version V4.4.0.1 ====================@echo john.liu@emdoor.com...
2018-03-07 11:03:18
403
原创 applyrecovery.bat
@echo == ApplyRecovery.bat ==@rem *********************************************************************@echo Checking to see if the PC is booted in BIOS or UEFI mode.wpeutil UpdateBootInfofor /f "toke...
2018-03-07 11:01:42
727
原创 applyimage.bat
@echo Apply-Image.bat@echo Run from the reference device in the WinPE environment.@echo.@echo This script erases the primary hard drive and applies a new image.@echo.@echo Make sure that thi...
2018-03-07 10:59:37
516
转载 【转】linux下杀死进程(kill)
http://blog.youkuaiyun.com/andy572633/article/details/7211546常规篇: 首先,用ps查看进程,方法如下:$ ps -ef……smx 1822 1 0 11:38 ? 00:00:49 gnome-terminalsmx 1823 1822 0 11:38 ?
2018-01-17 09:27:04
276
转载 禁用CvNamedWindow中的关闭按钮
摘http://www.cnblogs.com/zby03/articles/807495.html直接摘来如下:今天在写一个MFC程序时,需要临时禁用cvNamedWindow所创建窗口系统菜单上的关闭按钮,开始觉得没什么,直接写代码如下:HWND hCvWnd=(HWND)cvGetWindowHandle(windowTitle);CWnd* pCvWnd=C
2013-01-18 14:15:54
535
HOOK 记录和模拟 Keyboard Mouse
2014-07-08
最大稳定极值区域在图像检索领域的应用研究
2011-04-20
多通道图像MSER局部不变特征提取算法研究
2011-04-20
swift 如何获取本机手机号?
2024-11-26
C++或C# 如何控制win10 飞行模式开关
2017-03-15
TA创建的收藏夹 TA关注的收藏夹
TA关注的人