会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
shouhou!
博客园
首页
新随笔
联系
订阅
管理
2016年7月28日
python 函数应用
摘要: #函数的参数就是个变量 #定义函数的时候,使用关键字参数,可以指定默认值 def hello(name='reboot',age=1): return 'hello %s,your age is %s' %(name,age) print hello('reboot',3) print hello(3,'reboot') #print hello(age=3,name='reboot')...
阅读全文
posted @ 2016-07-28 17:45 shouhou!
阅读(142)
评论(0)
推荐(0)
编辑
公告