Is it possible to get Value out of tuple:
TUPLE = (
('P', 'Shtg1'),
('R', u'Shtg2'),
('D', 'Shtg3'),
)
by calling STR key like P
Python says that only int can be used for this type of 'query'
I can't use loop (too much overhead...)
Thank you!
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…