当使用带有unicode输入的locale库时,我遇到了一个奇怪的行为。下面是一个最小的工作示例:>>>x='\U0010fefd'>>>ord(x)1113853>>>ord('\U0010fefd')==0X10fefdTrue>>>ord(x)>>importlocale>>>locale.strxfrm(x)'\U0010fefd'>>>locale.setlocale(locale.LC_ALL,'en_US.UTF-8')'en_US.UTF-8'>>>locale.strxfrm(x)Traceback(mostrecentcalllast):File"",line1,i