1. #!/usr/bin/python
    2. # -*- coding: UTF-8 -*-
    3. # 可写函数说明
    4. def sum( arg1, arg2 ):
    5. # 返回2个参数的和."
    6. total = arg1 + arg2
    7. print "函数内 : ", total
    8. return total
    9. # 调用sum函数
    10. total = sum( 10, 20 )