安装环境Windows764bitApache-tomcat-8.0.9-windows-x64Solr-4.9.0JDK1.8.0_0564bit安装步骤Tomcat和JDk的安装在这里就略过。注意:solr4.9要求jdk1.7+步骤一:解压solr-4.9.0到任意文件夹,我解压到D:\InstalledApplications\solr-4.9.0\solr-4.9.0目录下。步骤二:将solr-4.9.0\dist\solr-4.9.0.war复
系统 2019-08-12 01:32:18 2524
从mongodb阶段性技术总结中抽取并整理了对大家有帮助的十个要点:1.mongodb表名和字段名统一用小写字母mongodb是默认区分大小写的,为了避免以前在mysql下遇到的大小写敏感导致程序访问频频出错,建立规范,mongodb的表名和字段名都用小写字母命名。2.尽可能的缩短字段名的长度mongodb的schemafree导致了每笔数据都要存储它的key以及属性,这导致了这些数据的大量冗余。开发人员也许考虑到,从易读性出发设计的key名,基本都是按照
系统 2019-08-12 01:32:13 2524
CreatingaPerformanceBaseline-Part1You'lloftenhearthatyoushouldmonitortheperformanceofSQLServer.Youmayreadalittleaboutperformancemonitoring,andyoumayturnonafewcountersorperformaqueryagainstadynamicmanagementviewthatyouknowabout.But
系统 2019-08-12 01:32:12 2524
导言篇我的python环境是:python3.6.5这里我选择的GUI编程包是:tkintertkinker在python2.5以后就是自带包了,所以我们不需要另外安装tkinker相对与其他pythonGUI编程的包而已,是相对容易入手的代码篇这是系统的登录界面importtkinterfromtkinterimportmessageboxclassLogin(object):def__init__(self):#创建主窗口,用于容纳其它组件self.r
系统 2019-09-27 17:56:29 2523
前一篇已经介绍过BASE页与index静态页面的开发了,但是目前index静态页面的输入框与提交按钮其实是没有任何作用的。如果需要与后台交互,还需要在数据库创建相应的表格,以及编写对应的业务逻辑去操作数据库。本篇我们暂时不去弄数据库,还是先对学生登录成功后的页面,编辑导航BASE页以及非BASE页的静态页面。之前聊过:【实战演练】Python+Django网站开发系列02-Django完整开发环境部署https://blog.51cto.com/14423
系统 2019-09-27 17:56:28 2523
#PythonDraw.pyimportturtleastt.penup();t.bk(250);t.pendown();t.pensize(25);t.pencolor('purple');t.seth(-40);foriinrange(5):t.circle(40,80);t.circle(-40,80);t.circle(40,80/2);t.fd(20);t.circle(20,180);t.fd(20);t.done();运行结果:知识点:库引用
系统 2019-09-27 17:55:39 2523
list_pratisce=[45,69,8,19,9]n=len(list_pratisce)forjinrange(n):foriinrange(n-1):iflist_pratisce[i]>list_pratisce[i+1]:temp=list_pratisce[i]list_pratisce[i]=list_pratisce[i+1]list_pratisce[i+1]=tempprint(list_pratisce)输出结果:[8,9,19,
系统 2019-09-27 17:53:56 2523
用dist存放所有数据到中心的距离,有n行(n组数据),k+1列(前k列分别存放到第i个类中心的距离,最后一列存放分到了第几类)#!/usr/bin/envpython#-*-coding:utf-8-*-importnumpyasnpn=100x=np.arange(100)y=np.arange(200,300,1)#1、选中心,此时假设分为两个类k=2center0=np.array([x[0],y[0]])center1=np.array([x[1
系统 2019-09-27 17:52:46 2523
Asterisk是一个开放源代码的软件VoIPPBX系统,我们用Asterisk搭建企业内部电话系统。AsteriskAMI的Asterisk管理接口。可以实现对Asterisk系统的监控和控制。安装asterisk-amipipinstallasterisk-amipipinstallgit+https://github.com/ettoreleandrotognoli/python-ami源码#!/usr/bin/envpython#-*-coding
系统 2019-09-27 17:48:40 2523
介绍现在交给你一份2010年美国各州县人口普查表:censuspopdata.xlsx。共72864条记录。每一行代表一个县某统计区的人口数。需要你统计出:各县统计区数量和人口数。表格内容长这样:通过本练习你讲学习到:python如何读取excel内容使用字典存储excel统计内容利用pprint格式化字典结构代码新建:readCensusExcel.py#!python3#readCensusExcel.py-Tabulatespopulationand
系统 2019-09-27 17:48:33 2523