1
reusFork 2012-12-24 00:11:36 +08:00 1
rules = [(exp1, func1), (exp2, func2), (exp3, func3)]
for l in lines: for exp, func in rules: if ………… |
2
wwwjfy 2012-12-24 00:21:12 +08:00
python有个东西叫OrderredDict
|
3
wwwjfy 2012-12-24 00:21:43 +08:00
写错了,OrderedDict
|