自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

  • 博客(46)
  • 收藏
  • 关注

转载 sql-分区

1 alter database rfdb add filegroup rf_test1 2 alter database rfdb add filegroup rf_test2 3 alter database rfdb add filegroup rf_test3 4 5 alter database rfdb add file(name='rf_test1'...

2019-05-20 17:18:00 105

转载 html-1

1 <html> 2 <head></head> 3 <title>ht</title> 4 <meta charset="utf-8"> 5 <meta name="htt" content = "httt"> 6 <body bgcolor = "gray"...

2019-05-10 11:19:00 71

转载 二叉树

1 class node(object): 2 def __init__(self,elem=-1,lchild=None,rchild=None): 3 self.elem=elem 4 self.lchild = lchild 5 self.rchild =rchild 6 7 8 clas...

2019-05-08 15:34:00 102

转载 算法-排序2

1 def quick_sort(ll,start,end): 2 #quick sort 3 mid=ll[start] 4 if start>=end: 5 return 6 low=start 7 high=end 8 while low <high: 9 ...

2019-05-08 14:05:00 64

转载 算法-排序

1 def bubb_sort(list): 2 # 冒泡排序 3 for i in range(len(list)-1,0,-1): 4 for j in range(i): 5 tmp=list[0] 6 if list[j]>list[j+1]: 7 ...

2019-05-06 17:00:00 49

转载 数据结构3-队列

QUEUE1 1 : class queue(object): 2 def __init__(self): 3 self.item=[] 4 5 def is_empty(self): 6 return self.item ==[] 7 8 def size(self): 9 ...

2019-05-06 16:35:00 53

转载 数据结构2-栈

1 class stack(object): 2 def __init__(self): 3 self.items=[] 4 5 def is_empty(self): 6 if len(self.items)>0: 7 return False 8 retu...

2019-05-06 16:15:00 47

转载 数据结构1-单向链表

class singlenode(object): def __init__(self,item): self.item=item self.next=None 1 class singlink(object): 2 def __init__(self): 3 self.head=None ...

2019-05-06 15:49:00 64

转载 hadoop安装配置

cd ect/hadoop1) 修改hadoop-env.shexport JAVA_HOME=/root/apps/jdk1.8.0_602) 修改core-site.xml<configuration><property><name>fs.defaultFS</name><value...

2019-04-30 14:30:00 53

转载 java数组2

package lastt;public class last { String name;int age; public last(String name,int age) { this.name =name; this.age=age; } public static void ...

2019-04-29 16:17:00 44

转载 java订单金额分级计算

package ord;import java.util.ArrayList;public class order { public String orderid; public user user; public ArrayList<product> pdls; public float ordernum; ...

2019-04-29 16:06:00 678

转载 java gusnum

package guss;import java.util.Scanner;public class gussnum {String myin;int y;public int gussnum() {Scanner mysc=new Scanner(System.in);String myin=mysc.nextLine();int y=Integ...

2019-04-29 08:28:00 63

转载 insert sort

package arr;public class arr4 {public static void main(String []args) {int []myarr = new int[5];myarr[0]=2;myarr[1]=8;myarr[2]=1;myarr[3]=5;myarr[4]=4;int tmp=myarr[0];f...

2019-04-29 08:13:00 59

转载 linux基本命令2

目录: 1 目录: 2 /bin:可执行文件 3 /sbin:系统文件 4 /dev:设备文件 1 ip:vi /etc/sysconfig/network-scripts/ifcfg-ens33; 2 3 centos7修改hostname:vi /etc/hostname; 4 5 ip映射:vi /etc/hosts; 6 ...

2019-04-26 11:41:00 71

转载 python多线程

基于多线程的木头人游戏,等待时间随机 1 import threading 2 import time 3 import random 4 5 def game(): 6 x=random.randint(1,10) 7 print(x) 8 count = 0 9 period =010 time_c...

2019-04-25 13:03:00 73

转载 java数组

1 public class arr{ 2 int []arr; 3 public arr(int a) { 4 this.arr = new int[10]; 5 for(int x= 0;x<a;x++) { 6 arr[x]=x+2; 7 } 8 ...

2019-04-24 17:05:00 57

转载 java循环1

public class f_w { public static void main(String []args) { int a=0; System.out.print("_info__while"); while(a<10) { a+=1; if(...

2019-04-24 16:16:00 114

转载 kettle变量(var变量)

设置变量/set varibale1、定义变量(子转换):原始数据设置获取变量:点击获取字段,自动获取变量名称和字段名称引用变量:输出:kettle.properties文件存储在.kettle目录下var=value重启spoon7.1版本中编辑-编辑kettle.properties,中间插入/删除/修改变量...

2019-04-20 20:42:00 230

转载 kettle变量(param命名参数2)

接arg参数:通过命令行进行变量赋值和引用定义跟界面定义相同:赋值(转换):运行命令到kettle目录下pan /file:path "/param:aa="bb"" "/param:file="abc""转载于:https://www.cnblogs.com/Dai-py/p/10723154.html...

2019-04-20 20:42:00 229

转载 kettle集群(转换)

1、定义子服务器新建子服务器中有一个必须为主服务器新建集群在需求集群运行的步骤中右键集群进行使用转载于:https://www.cnblogs.com/Dai-py/p/10710380.html...

2019-04-20 20:42:00 131

转载 kettle查询

》流查询:1、转换设计2、主数据3、查询数据4、流查询5、数据预览查询中有重复数据默认获取最后一条:查询数据中有重复数据,默认获取到了最后一条数据。主数据中无匹配数据则在结果集中返回null值。》数据库查询:主数据-数据库数据:定义数据库查询:勾选查询失败则忽略:勾选多...

2019-04-20 20:41:00 125

转载 kettle基于时间戳增量更新

思路1:1、提前建好ts时间表,设置两个字段分别为current_t和load_t,current用于比较原表中日期的上限,load_t则为上次加载的日期,几位原表中日期的下限。1 create table ts(2 current_t datetime,3 load_t datetime4 )5 select * from ts2.1...

2019-04-20 20:41:00 556

转载 kettle查询-2

模糊匹配:1、主数据/查询数据2、模糊匹配3、输出:jaro/jaro winkler/pair letters similarity(各自算法的匹配度measure value)http client/http post转载于:https://www.cnblogs.com/Dai-py/p/10734786.html...

2019-04-19 11:17:00 116

转载 sql sever基本命令

创建表:create table stu_info(id int identity(1,1) not null primary key clustered,name char(10) not null,score numeric not null)新建主键:create table stu_info(id int identity(1,1...

2019-04-18 10:29:00 131

转载 kettle变量(param命名参数)

1、定义:编辑-设置-命名参数在当前界面下定义参数名称和缺省值。2、引用:原始数据通过${var}引用变量输出注:1、字符串在命名参数引用是需要添加单引号的,但位置参数是不需要进行转译;  2、引用变量时需要勾选替换sql语句....  3、变量的生成双击空白处也可以打开属性  4、在select语句中引用变量而未设置变量系统会自动...

2019-04-17 13:48:00 427

转载 神经网路-SGD-1

SGD神经网络以及python中实现1、SGD(stochastic gradient descend):<1>数据抽取;<2>计算梯度;<3>参数更新;<4>循环2、三层SGD网络组件:隐藏层(1),隐藏层(2),输出层,损失函数2.1隐藏层:  <1>激活函数/激励函数:sigmoid函数和RELU函数 ...

2019-04-17 08:07:00 161

转载 图像金字塔/滑动窗口/非极大值抑制

图像金字塔:图像不断缩放1 import cv2#定义金字塔函数#传入参数分为为图像,缩放比例,最小size2 def img_pyramid(img,scale,minsize):#调用1次返回1次3 yield img4 while minsize[1] < img.shape[0] or minszie[0]<img.shape[1] :5 imag...

2019-04-16 13:54:00 376

转载 matplotlib使用

import numpy as npimport matplotlib.pyplot as plt生成数据1 mean1=[5,5]2 cov1=[[1,1],[1,1.5]]3 data=np.random.multivariate_normal(mean1,cov1,100)4 x1,y1=data.T5 x2=np.random.choice...

2019-04-15 17:10:00 74

转载 kettle表更新/插入更新

更新:1.1更新表:目标表:插入更新:2.1匹配表:目标表:插入/更新转换目标表转载于:https://www.cnblogs.com/Dai-py/p/10710005.html...

2019-04-15 12:45:00 204

转载 Kettle中表输出字段和字段选择

表输出:字段选择:注:字段选择可以输出匹配后的选中列,表输出则输出匹配后的所有列。转载于:https://www.cnblogs.com/Dai-py/p/10709718.html...

2019-04-15 11:32:00 2785

转载 Kettle 变量(arg位置参数)

1、表输入中使用?占位作为kettle转换变量数据预览:获取变量数据:使用?传入变量需要勾选替换sql语句中的变量,并选则从步骤插入数据中所在步骤数据预览转载于:https://www.cnblogs.com/Dai-py/p/10709606.html...

2019-04-15 11:17:00 180

转载 socket FTP-1

基于socket实现文件的传输以及md5验证server: 1 import socket 2 import os 3 import hashlib 4 server=socket.socket() 5 server.bind(('localhost',9090)) 6 server.listen() 7 8 while True: 9 ...

2019-04-12 16:30:00 54

转载 time模块

time模块:1 import time2 help(time) 1 time() 2 sleep() 3 gmtime() 4 localtime() 5 asctime() 6 ctime() 7 mktime() 8 strftime() 9 strptime()10 tzset() 1 time.time()...

2019-04-11 10:22:00 60

转载 python中random模块

random与numpy.random对比:1、random.random():生成[0,1)之间的随机浮点数;numpy.random.random():生成[0,1)之间的随机浮点数;numpy.random.random(size=(2,2)),生产一个2维的随机数组,每维2个随机数,数据区间[0,1)2、random.randint(a,b):生产[a,b]之间的...

2019-04-10 14:18:00 82

转载 批量合并同一文件夹下工作簿-1

描述:同一文件夹下有多个工作簿,且表结构相同,需要把文件夹下的各个工作表的内容合并到同一工作簿中。在文件夹下新建工作表,在新建工作表下插入宏。 1 sub hbwb() 2 3 dim r as integer,c as interger,r1 as integet,c1 as integer 4 5 dim filename as string,file...

2019-04-08 20:21:00 187

转载 Numpy中array数据操作

1、创建:1 import numpy as np2 arr=np.array([1,2,3])3 print(arr,arr.ndim)1 list=[1,2,3]2 arr=np.array(list)2、增加 1 arr=numpy.array([1,2,3]) 2 #arr中新增数据元素4 3 ad=numpy.array(...

2019-04-08 20:21:00 187

转载 class面向对象-2

hasattr/getattr/setattr/delattr#通过字符串判断/获取/新增/删除对象属性或方法class att(object):  def __init__(self,var):    self.var=var  def func(self):    print('%s is funcing'%self.var)<1>hasatt...

2019-04-08 20:20:00 44

转载 socket基础编程-1

server端和client端1、server端:import socketserver=socket.socket()server.bind(('localhost',8080))server.listen()conn,attr=server.connect()data=conn.recv(10240)re=b'.....'conn.send(re)...

2019-04-08 20:20:00 48

转载 re正则表达式-1

匹配/查找/替换/分割函数: 1 import re 2 3 re.match('aa','aabbcc') 4 返回对象中span为开始位置和结束位置 5 re.match('aa','bbaacc') 6 #返回值为None 7 re.search('aa','bbaacc') 8 #返回值同search 9 re.sub('aa','x',...

2019-04-08 17:19:00 87

转载 PLA-1

PLA(Principal Component Analysis)主成分分析:思路1:坐标旋转1、数据分布以及投影;2、特征值以及特征向量思路2:未完待续... 转载于:https://www.cnblogs.com/Dai-py/p/10670240.html...

2019-04-08 14:21:00 306

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除