Python学习笔记#定义函数
def intadd(a,b): return a+b
注意:
不要忘记冒号
注意格式要对齐;
>>> def intadd(a,b): return a+b >>> intadd(3,2) 5
posted on 2016-03-31 22:15 Lirh_china 阅读(143) 评论(0) 编辑 收藏 举报
def intadd(a,b): return a+b
注意:
不要忘记冒号
注意格式要对齐;
>>> def intadd(a,b): return a+b >>> intadd(3,2) 5
posted on 2016-03-31 22:15 Lirh_china 阅读(143) 评论(0) 编辑 收藏 举报