码迷,mamicode.com
首页 >  
搜索关键字:print    ( 43532个结果
Python-if
Python中的switch>>> choice = 'ham'>>> print({'spam': 1.25,... 'ham': 1.99, # A dictionary-based 'switch'... 'eggs': 0.99, # Us...
分类:编程语言   时间:2014-09-02 17:32:04    阅读次数:196
Python从题目学习:List comprehension
九九乘法表作业其实有更简单的做法,就是用列表推导式。-----------------------------------------------------------------------------Print below multiplication table:1*1=11*2=2 2*2...
分类:编程语言   时间:2014-09-02 17:13:45    阅读次数:343
jquery处理事件冒泡
Style Switcher Default Narrow Column Large Print 1、事件目标 $(‘#switcher‘).click(function(event){ if(event.target == this){ $(‘#switcher .button‘).toggleClass(‘hidden‘); } }) 确保被单击的元素是 ,...
分类:Web程序   时间:2014-09-02 12:43:24    阅读次数:182
python命令行参数解析实例
闲言少述,直接上代码 ?? ?#!/usr/bin/env python # # ? import json import getopt, sys def usage():     print sys.argv[0] + ' -i irt -s status'     print sys.argv[0] + ' -i irt -n seg -t stime'     pr...
分类:编程语言   时间:2014-09-02 12:24:54    阅读次数:149
Lua 学习笔记(-)
Lua学习笔记1、lua的优势 a、可扩张性 b、简单 c、高效率 d、和平台无关2、注释 a、单行注释 -- b、多行注释 --[[ --]]3、类型和值 8个基本类型,检测变量类型用type a、nil print(type(nil)) -->nil 全局变量没有赋值以前,会被默...
分类:其他好文   时间:2014-09-02 12:15:14    阅读次数:194
HDU3507 Print Article
Print ArticleTime Limit: 9000/3000 MS (Java/Others)Memory Limit: 131072/65536 K (Java/Others)Problem DescriptionZero has an old printer that doesn't w...
分类:其他好文   时间:2014-09-02 12:12:14    阅读次数:329
【python】入门学习(三)
for循环for i in range(): #注意冒号 range中默认从0开始 或者从指定的数字开始 到给定数字的前一个数字结束 递增递减皆是如此 for循环提供变量的自动初始化for i in range(10): print(i,end = ' ')prin...
分类:编程语言   时间:2014-09-02 11:45:54    阅读次数:242
Python版本 msf pattern_create.rb
Python(2.7.x)版本pattern_create.rb工具,计算溢出发生时被覆盖元素偏移地址: #!/usr/bin/env?python #?Replicates?msf?pattern_create.rb import?sys try:length=int(sys.argv[1]) except:print?"[+]?...
分类:编程语言   时间:2014-09-02 01:37:34    阅读次数:315
可变参数函数模板
16.53 编写你自己版本的print函数,并打印一个、两个及五个实参来测试它,要打印的每个实参都应有不同的类型。#include#includeusing namespace std;template ostream& print(ostream &os,const T &t){ osost...
分类:其他好文   时间:2014-09-02 00:03:23    阅读次数:206
使用python向Redis批量导入数据
1.使用pipeline进行批量导入数据。包含先使用rpush插入数据,然后使用expire改动过期时间class Redis_Handler(Handler): def connect(self): #print self.host,self.port,self.table self.conn.....
分类:编程语言   时间:2014-09-01 19:11:53    阅读次数:322
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!