摘要: #/usr/bin/python #coding=utf-8 #@Time :2017/10/24 9:09 #@Auther :liuzhenchuan #@File :函数的参数.py #比较参数x,y的大小 def fun(x,y): if x>y: print x elif x<y: pri 阅读全文
posted @ 2017-11-01 22:13 刘振川的博客 阅读(250) 评论(0) 推荐(0) 编辑
摘要: #/usr/bin/python #coding=utf-8 #@Time :2017/10/23 15:58 #@Auther :liuzhenchuan #@File :函数的一般形式.py ##函数的定义 #x y 为形参 ,sum(6,4)叫实参 def sum(x,y): print {' 阅读全文
posted @ 2017-11-01 22:11 刘振川的博客 阅读(228) 评论(0) 推荐(0) 编辑