Python 使用unicodedata来判断所有标点符号方法及示例代码

本文主要介绍Python2和Python3中,使用unicodedata来判断指定字符是否为标点符号(Punctuation)的方法,以及判断的示例代码。

原文地址:Python 使用unicodedata来判断所有标点符号方法及示例代码

posted @ 2021-07-17 12:51  levizhong  阅读(743)  评论(0)    收藏  举报