对于UCS-2,它是0xFFFF(或65535),对于UCS-4是0x10FFFF(或1114111):Py_UNICODEPyUnicode_GetMax(void){#ifdef Py_UNICODE_WIDE return 0x10FFFF;#else /* This is actually an illegal character, so it should not be passed to unichr. */ return 0xFFFF;#endif}UCS-4模式下的最大字符由UTF-16中可表示的最大值定义。