Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/278.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
从Python访问Unicode属性_Python_Python Unicode - Fatal编程技术网

从Python访问Unicode属性

从Python访问Unicode属性,python,python-unicode,Python,Python Unicode,Python中是否有一种简单的方法来确定给定的Unicode字符是否具有给定的特定属性(不确定我是否有正确的术语),例如“表意字符” 我已经在unicodedata和str中查找过,但不知道还能在哪里查找。我知道如何使用unicodedata.category,但这是一种不同于我需要的分类。我想你必须将列表解析为有用的数据结构,并使用它。可能是

Python中是否有一种简单的方法来确定给定的Unicode字符是否具有给定的特定属性(不确定我是否有正确的术语),例如“表意字符”


我已经在
unicodedata
str
中查找过,但不知道还能在哪里查找。我知道如何使用unicodedata.category,但这是一种不同于我需要的分类。

我想你必须将列表解析为有用的数据结构,并使用它。可能是