介绍Tornado出现Exception("didn't expect iteration %d" % i)错误的原因和解决方案,包括检查代码逻辑、数据源、异常处理和日志记录等。示例展示了正确使用Tornado生成器对象的方式。