Python学习笔记#定义函数 def intadd(a,b): return a+b 注意: 不要忘记冒号 注意格式要对齐; >>> def intadd(a,b): return a+b >>> intadd(3,2) 5