python学习之路-4 内置函数和装饰器
摘要:本篇涉及内容内置函数装饰器内置函数callable() 判断对象是否可以被调用,返回一个布尔值1234567891011num = 10print(callable(num)) # num不能够被调用,返回False def f1(): print("name") print(callable(f1)) # f1可以被调用,返回...
阅读全文
posted @ 2016-05-30 00:40
posted @ 2016-05-30 00:40
posted @ 2016-05-26 23:22
posted @ 2016-05-26 23:21
posted @ 2016-05-26 23:21
posted @ 2016-05-26 23:20