- 军军小站|张军博客
搜索到与相关的文章
数据库相关

【SQL语法】系列09:DELETE 语句

用于删除表中的行。语法DELETEFROM表WHERE列=值Person:LastNameFirstNameAddressCityGatesBillXuanwumen10BeijingWilsonFredZhongshan23Nanjing删除某行删除"FredWilson":DELETEFROMPersonWHERELastName='Wilson'结果:LastNameFirstNameAddressCityGatesBillXuanwumen10Be

系统 2019-08-12 01:53:01 2040

数据库相关

简单实用游标更改数据

alterprocupdateStudent@idint,@id2intasdeclare@SchoolIDintdeclare@ClassIDintdeclare@StudentIDintdeclare@IDNumberintdeclare@IDAAAintbegindeclareFeeInsertStudentcursorforselectstuID,SchID,ClasIDfromT_SchoolwhereID=@idopenFeeInsertStu

系统 2019-08-12 01:52:48 2040

编程技术

UI线程同步

WINFORM开发中常用的UI线程同步相关代码usingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Data;usingSystem.Drawing;usingSystem.Linq;usingSystem.Text;usingSystem.Windows.Forms;usingSystem.Threading.Tasks;usingSystem

系统 2019-08-12 01:33:52 2040

编程技术

Jetspeed 2.0 Final 正式发布

Jetspeed2.0Final正式发布,值得关注的特性包括:Spring-basedComponentsandScalableArchitecture使用Spring不知道是会为Jetspeed吸引更多的关注呢?还是臃肿的Spring最终让人们对Jetspeed也望而却步呢?ConfigurablePipelineRequestProcessor这个在eXo中早就实现了JetspeedAJAXXMLAPI值得关注,由于Jetspeed不是基于JSF的,所

系统 2019-08-12 01:32:50 2040

Python

python学习笔记之random模块

目录random模块圆周率计算random模块产生随机数#产生随机整数有a和b两个参数作为变化范围print(random.randint(1,10))#从1到10根据随机数种子产生随机小数#设置固定随机种子后就是假随机了,第一次结果永远固定random.seed(10)#设置随机数种子print(random.random())#取(0,1)之间的小数#如果不自定义种子,则种子按照当前的时间来print(random.random())#取(0,1)之间

系统 2019-09-27 17:57:17 2039

Python

python实现两个文件夹的同步

其实无论windows还是Linux,简单地去实现两个两个文件夹的同步只需系统自带的复制命令加参数就可以了。WINDOWS:xcopy源文件夹\*目标文件夹/s/e/yLinux:cp-r源文件夹/*目标文件夹这里使用python来实现这些基本功能,并增加一些去重之类的增强功能。1、复制源文件夹中文件至目标文件夹要想同步两个文件夹中的数据,基本思路首先需要遍历源文件夹中的信息,将源文件夹中的文件复制到目标文件夹。遍历文件夹采用os中的listdir函数就可

系统 2019-09-27 17:57:08 2039

Python

python 内置函数汇总详解

1.强制类型转换dict()强制转换为字典类型list()强制转换为列表类型tuple()强制转换为元组类型int()强制转为整形str()强制转换为字符串类型bool()强制转换为布尔类型set()强制转换为集合类型2.输入输出print()输出input()输入3.数学相关abs()绝对值qqq=abs(-253)print(qqq)float()转换成浮点型v=55v1=float(v)print(v1)max()找到最大值list=[11,22,3

系统 2019-09-27 17:55:32 2039

Python

python练习-2

1、10位评委评分,要求大于5分,小于101count=12whilecount<=10:3fen=int(input("输入你的分数:"))4iffen>5andfen<10:5print("%s号评委评分:%s分"%(count,fen))6else:7print("%s你是不是傻!!!"%count)8continue9count=count+1评分2、冒泡排序1lst=[1,5,6,8,4,3,2]23count=04whilecount

系统 2019-09-27 17:55:16 2039

Python

在Python中过滤Windows文件名中的非法字符方法

网上有三种写法:第一种(所有非法字符都不转义):defsetFileTitle(self,title):fileName=re.sub('[\/:*?"<>|]','-',title)#去掉非法字符self.file=open(fileName+".txt","w+")\非法字符必须转义,否则\/被解释为/第二种(所有非法字符都转义):defvalidateTitle(title):rstr=r"[\/\\\:\*\?\"\<\>\|]"#'/\:*?"<

系统 2019-09-27 17:54:39 2039

Python

Python:密度聚类DBSCAN,使用了sklearn.cluster.

DBSCAN的聚类类簇数k是自适应的。太忙了没工夫写文字了。fromsklearnimportdatasetsimportnumpyasnpimportmatplotlib.pyplotaspltfromsklearn.clusterimportDBSCANX1,y1=datasets.make_circles(n_samples=5000,factor=.6,noise=.05)X2,y2=datasets.make_blobs(n_samples=10

系统 2019-09-27 17:53:45 2039