摘要: Return是指返回一个数值,一般在函数中应用较多 Print则是指把结果打印出来,显示在屏幕上 def sum(a,b): total=a+b print('函数内:',total) return total #函数返回任意值 print('函数外:',sum(10,20)) #打印整个函数运行的 阅读全文
posted @ 2017-02-21 11:55 愚钝的大叔 阅读(928) 评论(0) 推荐(1) 编辑