标签: python-3.x
想知道是否有更多的pythonic或优雅方式来做到这一点
current_value = None for i in some_db_cursor: if i != current_value: current_value = i print("value has changed") else: ...