在Python中:
>>>"\N{BLACK SPADE SUIT}" >>>'?' >>>"\u2660" >>>'?'
现在,假设我有一个我不知道名字或号码的角色.是否有Python函数提供如下信息:
>>>wanted_function('?') >>>["BLACK SPADE SUIT", "u2660"]
?
python unicode python-3.x
python ×1
python-3.x ×1
unicode ×1