CodePudding user response:
Python dictionary keys must be immutable, such as string, number or a tuple,General use string is more,
I think as a key string should be no Spaces before and after, otherwise it is hard to understand,
CodePudding user response:
You somehow stick point code for everyone to see how you matchCodePudding user response:
Ok, I sent from a code attachedCodePudding user response:
You see if the string has Spaces, one thousand the space is not the result you match several yearsCodePudding user response:
Okay, settled, FanZhuanLai dictionary, wore a Spaces on key