摘要: ##importlogginglogging.debug('debug message')logging.info('info message')logging.warning('warning message') # WARNING:root:warning messagelogging.erro 阅读全文
posted @ 2017-12-31 21:45 Alos403 阅读(189) 评论(0) 推荐(0) 编辑
摘要: 注意迭代器和可迭代对象不同#迭代器:1、有iter方法,2、有next方法li=[1,2,3,4,5]d=iter(li) # 等于li.__iter__()print(d) # <list_iteratorobjectat0x00000174316CC3C8>可以通过next方法取出元素。for循 阅读全文
posted @ 2017-12-31 21:24 Alos403 阅读(165) 评论(0) 推荐(0) 编辑