2017年6月28日

python连接数据库查询

摘要: import sqlite3 as db conn = db.connect(r'D:/data/test.db') print ('Opend database successfully \n') #conn.row_factory = db.Row cursor = conn.cursor() results = cursor.execute("select * from Meter") ... 阅读全文

posted @ 2017-06-28 17:33 Zing_Z 阅读(165) 评论(0) 推荐(0)

2017年6月15日

网页闹钟

摘要: 现在是北京时间:<span id='yanshi_time'></span><br/> <audio src='http://cctv3.qiniudn.com/tbhdqx.mp3' preload='auto' id='music'></audio> 请设定你的闹铃时间: <input type 阅读全文

posted @ 2017-06-15 09:13 Zing_Z 阅读(1212) 评论(0) 推荐(0)

2017年6月12日

C#之WPF连接sqllite数据库

摘要: using System; using System.Collections.Generic; using System.Data; using System.Data.SQLite; namespace EasyEnergy.AppLogicService { public class AlarmSqliteDbHelp { public static st... 阅读全文

posted @ 2017-06-12 15:22 Zing_Z 阅读(1029) 评论(0) 推荐(0)

2017年6月5日

Java面向对象笔记(五分钟秒懂)

摘要: 面向对象概念 面向对象三大特征:封装,继承,多态 面向对象编程(OOP,Object Oriented Programing)是相对于面向过程编程说的,之前写的代码基本都是纯的面向过程编程的,当项目复杂了,那么纯面向过程代码实现会很复杂,面向对象可以简化代码的结构和组织关系。面向对象不是替代面向过程 阅读全文

posted @ 2017-06-05 10:21 Zing_Z 阅读(266) 评论(0) 推荐(0)

2017年6月1日

当页面因尊重版权不给复制时。

摘要: 页面禁止使用Ctrl+C,右键,f12时,如何复制。 1选择文字,拖动选择的文字! 2更换为急速模式或者兼容模式!3使用火狐浏览器,必可以f12 4一段可以任意修改网页内容的代码 先把这段代码输入到地址栏: 然后按enter(回车),之后就可以任意修改网页上的东西了, 修改完后再把这段代码输入到地址 阅读全文

posted @ 2017-06-01 15:13 Zing_Z 阅读(266) 评论(1) 推荐(0)

2017年5月27日

chsime.exe cpu占用高

摘要: 打开管理员的命令提示符,运行 if exist "%SystemRoot%\System32\InputMethod\CHS\ChsIME.exe" (takeown /f "%SystemRoot%\System32\InputMethod\CHS\ChsIME.exe" /Aicacls "%S 阅读全文

posted @ 2017-05-27 13:17 Zing_Z 阅读(897) 评论(0) 推荐(0)

两个变量交换数字 不用第三个变量的情况下 int a = 5,b = 6

摘要: 今天可是涨见识额 记录一下 第一种方法: a=a+bb=a-ba=a-b 第二种: b= a+(a=b)*0 一句话搞定 阅读全文

posted @ 2017-05-27 12:11 Zing_Z 阅读(137) 评论(0) 推荐(0)

js禁止刷新的简单方法

摘要: //禁止用F5键 这个是键盘按下时触发document.onkeydown = function() { if ( event.keyCode==116) {event.keyCode = 0; event.cancelBubble = true; return false; } } //禁止右键弹 阅读全文

posted @ 2017-05-27 12:11 Zing_Z 阅读(408) 评论(0) 推荐(0)

2017年3月23日

mysql安装可能遇到的错误和安装过程

摘要: http://jingyan.baidu.com/article/8ebacdf02e392a49f65cd52d.html 阅读全文

posted @ 2017-03-23 17:29 Zing_Z 阅读(123) 评论(0) 推荐(0)

2017年2月3日

网络知识。一个网友的回答

摘要: 上线的话,肯定要让所有能联网的人都访问的到,这就需要运行你的tomcat的服务器有公网ip,通过公网ip所有人就都能访问了,公网ip呢,一般你买一台云服务器都会有的。然后呢为什么要域名呢?其实本来有公网ip就够了,但是不好记嘛,域名就好记多了,你可以买个域名,然后配置域名的dns绑定你的域名就是指向 阅读全文

posted @ 2017-02-03 15:00 Zing_Z 阅读(115) 评论(0) 推荐(0)

导航