摘要: 在根目录的app.json中添加tabBar,示例如下{ "pages": [ "pages/index/index", "pages/logs/logs", "pages/scanning/scanning" ], "wind... 阅读全文
posted @ 2017-08-29 16:11 HeJD 阅读(112) 评论(0) 推荐(0) 编辑
摘要: myList = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]segmentation = [myList[i:i+3] for i in range(0,len(myList),3)]输出 [[0, 1, 2], [3, 4, 5]... 阅读全文
posted @ 2017-08-29 11:01 HeJD 阅读(200) 评论(0) 推荐(0) 编辑
摘要: 查看端口被什么进程占用netstat -lnp|grep 8000得到结果如下tcp 0 0 0.0.0.0:8000 0.0.0.0:* LISTEN 22864/p... 阅读全文
posted @ 2017-08-29 09:26 HeJD 阅读(253) 评论(0) 推荐(0) 编辑
摘要: Anaconda安装Anaconda官网下载相应的版本 下载的文件名为:Anaconda2-4.4.0-Linux-x86_64.sh打开安装界面bash Anaconda2-4.4.0-Linux-x86_64.sh阅读协议,不停yes即可。 安装完... 阅读全文
posted @ 2017-08-22 10:06 HeJD 阅读(73) 评论(0) 推荐(0) 编辑
摘要: 当前日期格式化:time.strftime('%Y-%m-%d',time.localtime(time.time()))pprint:import pprintpp = pprint.PrettyPrinter(indent=4)pp.pprint(... 阅读全文
posted @ 2017-07-31 17:52 HeJD 阅读(140) 评论(0) 推荐(0) 编辑
摘要: CREATE DATABASE `test2` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci; 阅读全文
posted @ 2017-05-17 09:36 HeJD 阅读(195) 评论(0) 推荐(0) 编辑
摘要: 在tests.py中,导入TestCase包from django.test import TestCase创建测试类:class SimpleTest(TestCase):创建测试函数,必须以test_开头def test_login(self):模... 阅读全文
posted @ 2017-05-05 15:06 HeJD 阅读(312) 评论(0) 推荐(0) 编辑
摘要: 登陆ssh -i *.pem @.compute.amazonaws.com上传scp -i *.pem @.compute.amazonaws.com:下载scp -i *.pem @.compute.amazonaws.com: ... 阅读全文
posted @ 2017-03-31 11:14 HeJD 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 字体:https://fonts.google.com/ 免费符号字体:https://icomoon.io/app/#/select 在线代码格式化:http://tool.oschina.net/codeformat/html apache2.2在... 阅读全文
posted @ 2017-03-03 09:10 HeJD 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 主配置文件关联模块mod_mime关联指令IncludeTypesConfigApache HTTP Server是通过将指令放在纯文本配置文件中配置的,主配置文件通常是httpd.conf。本地的配置文件在编译时(compile-time)被设置,但... 阅读全文
posted @ 2017-02-28 17:17 HeJD 阅读(178) 评论(0) 推荐(0) 编辑