October 2009

You are browsing the archive for October 2009.

input 与 raw_input 的区别

input 和 raw_input 都可以读取控制台的输入; 但它们之间有差别, raw_input 对空控制台的输入都解释为字符串

s = raw_input(”Please enter a string: “);
print type(s); #

n = input(”Please enter a number: “);
print type(n); #

差了官方文档 http://docs.python.org/library/functions.html?highlight=input#input
其实 input 函数等效于

def input(prompt):
[...]

Mootools a compact JavaScript Framework

开始学习mootools框架

jQuery插件在线开发工具–starter

Starter: jumptstart Your jQuery Plugins: 是一个在线的jQuery插件开发工具,能够让我们轻松的开发出jQuery插件。