断言操作引发Stopiteration我有一个生成器,我想确认它已经结束(在程序的某个时刻)。我在python2.7中使用unittest # it is a generator whould have only one item ite ...2024-05-21 已阅读: n次