Python练习题
首先 range是reversed word 在这里你可以理解为python保留词汇 也就是说你给一个变量赋值时 不能命名其为range 因为你下载的python里已经有了range的用法和相关操作规则 wiki中的定义为a reserved word (also known as a reserved identifier) is a word that cannot be used as an identifier, such as the name of a variable, function, or label (也就是前面我所解释的 当然 wiki更权威 相信你也能读懂 )
其他的reserved word 可以随便举例 比如 random in for print 等等 都可以
python 题目
Created on 2011-2-20
@author: louis
def userChoice():
global n
n = ""
while n != "done":
n = raw_input("Please enter your choice: ")
print n
userChoice()