-----------------脚本内容部分--------------------------
#!/usr/bin/python
name = raw_input('please input name :')
//定义年龄只能使用int类型数值
age = int(raw_input('please input age :' ))
//打印查看age变量的值是什么类型字符
print type(age)
print """
Name:   %s
Age:    %s
""" % (name,age)
-------------------------------------------------------------
--------------------------正常输入------------------------------
[root@localhost opt]# ./user.py 
please input name :ljp
please input age :12


Name:        ljp
Age:        12
------------------------------------------------------------------
------------------------错误输入------------------------------
[root@localhost opt]# ./user.py 
please input name :ljp
please input age :lj
Traceback (most recent call last):
  File "./user.py", line 3, in
    age = int(raw_input('please input age :' ))
ValueError: invalid literal for int() with base 10: 'lj'
[root@localhost opt]# 
//提示输入字符不是int类型
------------------------------------------------------------------