摘要: 一、创建函数 >>> import math >>> x=1 >>> y=math.sqrt >>> callable(x) #显示False >>> callable(y) #显示True 1、def,用来创建函数 >>> def hello(name) >>> return 'Hello, '+ 阅读全文
posted @ 2016-05-27 17:25 xiaofoyuan 阅读(233) 评论(0) 推荐(0) 编辑