Python-9 函数
摘要:
#1 内建函数 乘方:pow() >>> pow(2,3) 8 >>> 取绝对值:abs() >>> abs(-1) 1 >>> 四舍五入为最接近的整数:round() >>> round(2/3) 1 >>> round(3/2) 2 >>> #2 形参、实参 def mythirdfunc(na 阅读全文
posted @ 2015-07-20 09:22 huan2368935760 阅读(180) 评论(0) 推荐(0) 编辑