Skip to content

Instantly share code, notes, and snippets.

@laixintao
Created July 23, 2018 10:51
Show Gist options
  • Save laixintao/91b2dafa1eebe3c079d5924e6e5877e7 to your computer and use it in GitHub Desktop.
Save laixintao/91b2dafa1eebe3c079d5924e6e5877e7 to your computer and use it in GitHub Desktop.
# -*- coding: utf-8 -*-
TYPE = {
("ALARM_ANALYSIS", "报警分析"),
("DAILY_REPORT", "日报")
}
for k, v in TYPE:
print(k, v)
# OUTPUT:
# ➜ [takachiho] tmp python unordered_migration.py
# DAILY_REPORT 日报
# ALARM_ANALYSIS 报警分析
# ➜ [takachiho] tmp python unordered_migration.py
# ALARM_ANALYSIS 报警分析
# DAILY_REPORT 日报
# ➜ [takachiho] tmp python unordered_migration.py
# DAILY_REPORT 日报
# ALARM_ANALYSIS 报警分析
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment