相关疑难解决方法(0)

如何在Python中找到unicode字符的数量/名称?

在Python中:

>>>"\N{BLACK SPADE SUIT}"
>>>'?'
>>>"\u2660"
>>>'?'
Run Code Online (Sandbox Code Playgroud)

现在,假设我有一个我不知道名字或号码的角色.是否有Python函数提供如下信息:

>>>wanted_function('?')
>>>["BLACK SPADE SUIT", "u2660"]
Run Code Online (Sandbox Code Playgroud)

python unicode python-3.x

34
推荐指数
1
解决办法
1万
查看次数

标签 统计

python ×1

python-3.x ×1

unicode ×1