会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
类十三
博客园
首页
新随笔
联系
订阅
管理
2017年12月11日
定义一个自动运算x的y次方的function
摘要: def power(x=1, y=1): if not (isinstance(x, (int, float)) and isinstance(y, (int, float))): # 判断参数x,y是否是int或float print("输入错误") return # 当x或y不是int或float时,在此终止fu...
阅读全文
posted @ 2017-12-11 16:51 类十三
阅读(230)
评论(0)
推荐(0)
编辑
公告