码迷,mamicode.com
首页 >  
搜索关键字:zen coding    ( 13130个结果
Game
import osimport sys#coding=utf-8def CountTime(filepath): try: fobj = open(filepath,'rb') total = 0 times = 0 line = fob...
分类:其他好文   时间:2014-09-02 19:42:55    阅读次数:144
gevent queue应用2 队列设置了最大数量限制
1 # -*- coding:utf-8 -*- 2 #! /usr/bin/env python 3 ''' 4 Created on 2014年9月2日 5 ''' 6 import gevent 7 from gevent.queue import Queue, Empty 8 import....
分类:其他好文   时间:2014-09-02 19:42:25    阅读次数:385
gevent queue应用1
1 # -*- coding:utf-8 -*- 2 #! /usr/bin/env python 3 ''' 4 Created on 2014年9月2日 5 ''' 6 import gevent 7 from gevent.queue import Queue 8 import random....
分类:其他好文   时间:2014-09-02 19:32:15    阅读次数:223
(转)sublime text 2中Emmet8个常用的技巧
原文链接:http://blog.csdn.net/lmmilove/article/details/9181323因为开始做web项目,所以最近在用sublime编辑器,知道了一个传说中的emmet,原名是zen coding。html神插件可以说是。文章部分内容转自http://www.cnbl...
分类:其他好文   时间:2014-09-02 17:27:54    阅读次数:195
插入排序
在冒泡排序、选择排序编写代码之后,楼主渐渐找到了coding的信心,熟能生巧,就像写词唱曲之前,都得先背诵大量的诗词,熟悉各路歌曲,才干走出自己的路线,有自己的杰作。好吧,来让楼主继续进行"社会主义0基础阶段"的任务,这次是插入排序。一. 算法描写叙述 插入排序:插入即表示将一个新的数据插入到...
分类:其他好文   时间:2014-09-02 17:11:54    阅读次数:381
UVA - 10828 Back to Kernighan-Ritchie (方程消元)
Youmust have heard the name of Kernighan and Ritchie, the authors ofThe C Programming Language. While coding in C, we use differentcontrol statements and loops, such as, if-then-else, for, do-while,...
分类:其他好文   时间:2014-09-02 15:59:14    阅读次数:206
ios7.0结合storyborad实现页面跳转的总结
折腾了一整天,本文总结一下ios7.0页面跳转有关的内容storyboard的潜规则我接触ios很晚,环境已经是xcode5+ios7,所以对以前的IOS开发模式并不了解。在网上查阅了很多资料,发现以前的代码,很多都需要自己coding来创建ViewController,比如:Objc代码WTwoV...
分类:移动开发   时间:2014-09-02 09:00:24    阅读次数:278
自动备份脚本
自动查找相关文件.上传到服务器#!/usr/bin/ruby #coding:utf-8 require‘date‘ $result=[] bak_ser="bacula@192.168.100.24" defcheck(top_dir,ext_type,exclude,dir_deep) content=Dir.entries(top_dir) foriincontent i=top_dir+"/"+i #hiddendirorhiddenfile nextifFile.ba..
分类:其他好文   时间:2014-09-01 15:58:34    阅读次数:286
python 读取excel 生成json 读取json
#_*_coding:utf-8importxlrd,sysimportpickleimportjsondata=xlrd.open_workbook("d:/test/6.xlsx")##读取工作表,方法可以按顺序索引找,也可以使用sheet_by_name(u"Sheet1")table=data.sheet_by_index(0)###读取内容摘要表并存入nrarrnrarr={}table1=data.sheet_by_index(1)fo..
分类:编程语言   时间:2014-09-01 15:52:14    阅读次数:279
python 读取excel 生成json 读取json
#_*_coding:utf-8importxlrd,sysimportpickleimportjsondata=xlrd.open_workbook("d:/test/6.xlsx")##读取工作表,方法可以按顺序索引找,也可以使用sheet_by_name(u"Sheet1")table=data.sheet_by_index(0)###读取内容摘要表并存入nrarrnrarr={}table1=data.sheet_by_index(1)fo..
分类:编程语言   时间:2014-09-01 15:51:33    阅读次数:184
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!