LINUX CENTOS7下安装PYTHON 原文:http://www.cnblogs.com/lclq/p/5620196.html Posted on 2016-06-27 14:58 南宫羽香 阅读(8506) 评论(5) 编辑 收藏 1.查看是否已经安装Python Centos7默认安装 ...
分类:
编程语言 时间:
2017-09-02 19:52:31
阅读次数:
181
在Tomcat中部署Java Web应用程序有两种方式:静态部署和动态部署。 在下文中$CATALINA_HOME指的是Tomcat根目录。 一、静态部署 静态部署指的是我们在服务器启动之前部署我们的程序,只有当服务器启动之后,我们的Web应用程序才能访问。 以下3种方式都可以部署:(以PetWeb ...
分类:
Web程序 时间:
2017-09-02 12:54:36
阅读次数:
330
netstat -nupl (UDP类型的端口)netstat -ntpl (TCP类型的端口) a 表示所有 n表示不查询dns t表示tcp协议 u表示udp协议 p表示查询占用的程序 l表示查询正在监听的程序 netstat -nuplf|grep 3306 //这个表示查找处于监听状态的,端 ...
分类:
系统相关 时间:
2017-09-02 01:06:59
阅读次数:
245
同步请求用例 1 2 3 4 5 6 7 8 1 2 3 4 5 6 7 8 OkHttpClient 构造 1 2 3 1 2 3 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 2 3 4 5 6 7 8 9 10 11 12 13 14 ...
分类:
Web程序 时间:
2017-09-01 23:03:37
阅读次数:
257
在做SSM项目的时候,遇到MyBatis抛出的一个异常: Mapped Statements collection does not contain value for org.lyk.vo.mapping.NewsNS.findById. 根本原因是mybatis.cfg.xml配置文件缺少了对M ...
分类:
移动开发 时间:
2017-09-01 22:21:50
阅读次数:
3124
import time #time.time() 获取时间戳 print time.time() #将时间戳转成元组 #time.localtime() now_time_1 = time.localtime(time.time()) print now_time_1 #time.strptime(... ...
分类:
编程语言 时间:
2017-09-01 22:14:00
阅读次数:
147
原文地址:http://blog.csdn.net/qq_31708763/article/details/77736671 ...
分类:
Web程序 时间:
2017-09-01 21:29:24
阅读次数:
185
模块 前面有简单介绍如何使用import从外部模块获取函数并且为自己的程序所用: 模块是程序 任何python程序都可以作为模块导入。假设写如下程序,并且将它保存为以C:\python\hello.py 下面通过python解释器调用: 再来一次: 怎么这次没结果?因为导入模块并不意味着在导入进执行 ...
分类:
编程语言 时间:
2017-09-01 20:24:48
阅读次数:
189
1、时间戳转换成时间 local t = 1412753621000 function getTimeStamp(t) return os.date("%Y%m%d%H",t/1000) end print(getTimeStamp(t)) 2、得时间戳 os.time() -- 当前时间戳 os. ...
分类:
其他好文 时间:
2017-09-01 19:44:41
阅读次数:
184
#导入相关模块import MySQLdbimport osimport re#建立和mysql数据库的连接conn = MySQLdb.connect(host='localhost',user='root',passwd='123lqh')conn.select_db('slowquery')c ...
分类:
其他好文 时间:
2017-09-01 19:35:00
阅读次数:
110