这个例子你可以看到可以再模板中编写python代码,也会粗略的编写第一个web.py程序了。步骤如下。1、首先看结构2.在testquery2.py中输入:import webimport osclass index: def GET(self): print "进入index"...
分类:
Web程序 时间:
2014-09-19 13:37:55
阅读次数:
138
1.Implement a functionthat prints the numbers from 1 to 100.But for multiples of three(3) print “Zif”insteadof the number and for the multiples of five(5) print “Nab”. For numbers whichare multiples...
分类:
编程语言 时间:
2014-09-19 12:06:25
阅读次数:
198
niujie@ubuntu:~$ cat /etc/fstab# /etc/fstab: static file system information.## Use 'blkid' to print the universally unique identifier for a# device; t...
分类:
其他好文 时间:
2014-09-19 10:05:35
阅读次数:
182
sscanf字符拆分: sscanf(strTmpName,"%4s_%12s_%4s%2s%2s_%2s%2s_%5s_%c",SatID,strWord,cy,cm,cd, ch,cn,wordTime,&wordFlag);sprintf字符拼接:sprintf(cBCALDataFi...
分类:
系统相关 时间:
2014-09-19 10:02:05
阅读次数:
200
Python使用中面向对象的语言,支持继承、多态;
定义一个Person类:
>>> class Person:
... def sayHello(self):
... print('hello')
...
>>> Person.sayHello(None)
hello
>>> Person().sayHello()
hello
可以修...
分类:
编程语言 时间:
2014-09-18 22:22:34
阅读次数:
255
#include void main(){ int i,jing[5],ti,cheng[5];for(i=0;icheng[i+1]){ ti=cheng[i]; cheng[i]=cheng[i+1]; cheng[i+1]=ti;} } printf("\n"); for(i=0;i<6;.....
分类:
其他好文 时间:
2014-09-18 20:35:54
阅读次数:
125
del: 用法: del 用于列表: eg:a = [0,1,2,3] del a[0] print a # 得到1,2,3 特别: 1、del 删除不会删除数据,只是不再指向而已 eg:a = [0,1,2,3] ...
分类:
编程语言 时间:
2014-09-18 20:31:44
阅读次数:
168
1 #这里是注释 2 print ("泥嚎") 3 a1 = input('能能输入数字1:\n') 4 a1 = int(a1) 5 a2 = input('能能输入数字2:\n') 6 a2 = int(a2) 7 if a1>a2: 8 print('a1') 9 elif a1==...
分类:
编程语言 时间:
2014-09-18 18:40:34
阅读次数:
172
using-bitset-to-print-duplicate-elements-of-array
分类:
其他好文 时间:
2014-09-18 18:32:24
阅读次数:
341
原文地址:http://www.php100.com/html/php/rumen/2014/0326/6703.html
一、PHP5.4的基本语法格式
1、PHP的分割符
view
source
print?
1.$php=true; //分号结束语句
2.if($php){
3.echo "真"; /...
分类:
移动开发 时间:
2014-09-18 16:37:24
阅读次数:
196