摘要:
1.abs(),取绝对值 2.all(),判断里面是否都为真 def all(iterable) for element in iterable if not element: return False return True 3.any(),判断里面元素是否有真 4.ascii(object) 忘 阅读全文
摘要:
import time def timer(func): def deco(arg1): start_time=time.time() func(arg1) stop_time=time.time() print("the func run time is %s"%(stop_time-start_ 阅读全文
摘要:
import time def deco(func): start_time=time.time() func() stop_time=time.time() print("the func run time is %s"%(stop_time-start_time)) def test1(): t 阅读全文