Python简单的交互式操作方法一:#!/usr/bin/envpython#encoding:utf8#Filename:interactive.pyname=raw_input("pleaseinputyourname:")passwd=raw_input("pleaseinputyourpasswd:")count=0temp=0ifname==‘liu‘:ifpasswd==‘123‘:print‘welcomelogin!‘else:foriinrange(4):count+..
分类:
编程语言 时间:
2015-07-24 18:59:33
阅读次数:
142
Python简单的交互式操作方法一:#!/usr/bin/envpython#encoding:utf8#Filename:interactive.pyname=raw_input("pleaseinputyourname:")passwd=raw_input("pleaseinputyourpasswd:")count=0temp=0ifname==‘liu‘:ifpasswd==‘123‘:print‘welcomelogin!‘else:foriinrange(4):count+..
分类:
编程语言 时间:
2015-07-24 18:57:43
阅读次数:
116
将a Latch一级 wire a; reg en; always @ (posedge clk) en = a; reg [3:0] cnt; always @ (posedge clk or posedge rst) if (rst) cnt <= 4’d0; else if (en) cnt ...
分类:
其他好文 时间:
2015-07-24 12:02:56
阅读次数:
97
{{: ...}} {{> ...}} {{include ...}} {{for ...}} {{props ...}} {{if ...}} {{else ...}} {{!-- ... --}} {{* ... }} and {{*: ...}} template.render() $.render.myTmpl() $("#myTmpl").render() <!DOCTYPE ht...
分类:
Web程序 时间:
2015-07-24 00:19:30
阅读次数:
177
public class Demo2 {
public static void main(String[] args) {
// if语句的使用:多用于范围的判断
int x=3;
int y=10;
System.out.println("===比较开始===");
if(x>y){
System.out.println("x>y");
}else{
System.out.pr...
分类:
编程语言 时间:
2015-07-23 23:59:48
阅读次数:
300
一、对图片的左边距进行初始化 for(var i = 0;i if(i < img.length - 1){ i++; }else{ i = 0; ...
分类:
其他好文 时间:
2015-07-23 23:17:07
阅读次数:
123
选出三个数,让最大的数和最小的数之差不超过d~那只需要将所有数排序后,找出=low) { mid=low+(high-low)/2; if(num[mid]==n) return mid; else if(num[mid]>=n) high=mid-1; ...
分类:
其他好文 时间:
2015-07-23 19:09:03
阅读次数:
96
Vi ew中代码 在control中进行判断 if(action=="yes") { } else { }
分类:
Web程序 时间:
2015-07-23 17:29:15
阅读次数:
198
#-*-coding:utf-8-*-
#输出一个金字塔
‘‘‘
num=10
forhanginrange(num):print‘‘*(num-hang)+‘*‘*(hang*2-1)
‘‘‘
#输出一个镂空金字塔
‘‘‘
num=10
forhanginrange(1,num):
if(hang==1orhang==(num-1)):print‘‘*(num-hang)+‘*‘*(hang*2-1)
else:print‘‘*(num-hang)+‘*‘+‘‘*(han..
分类:
编程语言 时间:
2015-07-23 08:18:34
阅读次数:
137
js 框架:function getStyle(obj,attr){
if(obj.currentStyle){
return obj.currentStyle[attr];
}
else{
return getComputedStyle(obj,false)[attr];
}
}
function startMove(obj,json,fn){
var flag = true...
分类:
Web程序 时间:
2015-07-22 23:03:05
阅读次数:
176