Created
July 23, 2018 10:51
-
-
Save laixintao/91b2dafa1eebe3c079d5924e6e5877e7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- 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