#可以直接将raw_input()的结果赋给response变量,而且()里的内容可以直接输入,无需之前的例子中先print一个提示,再用raw_input()让大家输入#
response = raw_input("how may students are in your class")
numberofstudents=int(response)
print "there are", numberofstudents
原文地址:http://huzhongliang.blog.51cto.com/1817180/1890107