01 2016 档案

摘要:使用 ll 或 ls -l 指令时 第一列会显示出目录下文件的权限例如∶ -rw-r-r- 横线代表空许可.r代表只读,w代表写,x代表可执行.注意这里共有10个位置.第一个字符指定了文件类型.在通常意义上,一个目录也是一个文件.如果第一个字符是横线,表示是一个非目录的文件.如果是d,表示是一个... 阅读全文
posted @ 2016-01-13 09:27 weiokx 阅读(887) 评论(0) 推荐(0) 编辑
摘要:twistd 启动Python服务shell 脚本如下:#! /usr/bin/env shMAIN_MODULE=pdf_task.pyROOT="/var/www/pdf/"case $1 in start) PYTHONPATH=.:$PYTHONPATH twistd -... 阅读全文
posted @ 2016-01-12 15:40 weiokx 阅读(554) 评论(0) 推荐(0) 编辑
摘要:使用explain查看执行计划, 下面是针对这两条语句进行分析,其查询结果是一样的。EXPLAIN select n.id,n.title from info n inner join info_tags t on n.id=t.info_id where t.category_id=20 orde... 阅读全文
posted @ 2016-01-11 15:46 weiokx 阅读(216) 评论(0) 推荐(0) 编辑
摘要:#//获取选中项$('#submit').click(function () { var check_list = [] $("input[name='ck']:checked").each(function () { check_list.push(this.value)... 阅读全文
posted @ 2016-01-10 15:06 weiokx 阅读(666) 评论(0) 推荐(0) 编辑
摘要:html页面 后台程序def upload(request): try: user = request.user #file = request.FILES.get('f_localupload') file_obj = request.FILES.values()[0] ... 阅读全文
posted @ 2016-01-08 22:02 weiokx 阅读(579) 评论(0) 推荐(0) 编辑
摘要:实例#!/usr/bin/python# -*- coding: utf-8 -*-'''Created on Dec 6, 2013@author: Jay @description: use PhantomJS to parse a web page to get the geo info of... 阅读全文
posted @ 2016-01-07 15:33 weiokx 阅读(1528) 评论(0) 推荐(0) 编辑
摘要:#################线程演示脚本 ########################coding=utf-8import threadingfrom time import ctime,sleepdef music(func): for i in range(2): print ... 阅读全文
posted @ 2016-01-07 15:07 weiokx 阅读(154) 评论(0) 推荐(0) 编辑
摘要:以下是python脚本send_mms.py#############################################!/usr/bin/python# -*- coding: utf-8 -*-from twisted.application import servicefrom ... 阅读全文
posted @ 2016-01-06 23:29 weiokx 阅读(702) 评论(0) 推荐(0) 编辑
摘要:PyCharm3.4.1 常用的快捷键 查找/替换(Search/Replace) Ctrl + F 当前文件查找/替换 Ctrl + H 全局查找文件 编辑(Editing) Ctrl + Q 光标定位到最后编辑位置 Ctrl + - 折叠代码 Ctrl + + 展开代码 Shift + Ente 阅读全文
posted @ 2016-01-05 12:04 weiokx 阅读(1938) 评论(0) 推荐(0) 编辑
摘要:1.设置IDE皮肤主题 File -> Settings -> IDE Settings -> Appearance -> Theme -> 选择“Alloy.IDEA Theme”2.设置编辑器“颜色与字体”主题 File -> Settings -> IDE Settings -> Editor... 阅读全文
posted @ 2016-01-05 11:56 weiokx 阅读(53474) 评论(0) 推荐(0) 编辑