yield和return

return:python import time def sayHi2(**kargs): for i in range(10): time.sleep(1) return 'loop', i result = sayHi2(name='Alex', age=29, phone=1355434) print result print result prin
相關文章
相關標籤/搜索