python 是强类型语言,用什么key存进去的,就要用什么key取。 patterns = {('I5',): 2, ('I1','I5'):2} print(patterns[('I5',)]) > 2 patterns["('I5' ...
確定! 回上一頁