Files
nanocode/new-media-platform/website-new/backend/venv-win/Lib/site-packages/pypinyin/exceptions.py
T
Ubuntu 32b43f85bd a
2026-07-03 16:58:28 +08:00

15 lines
396 B
Python

# -*- coding: utf-8 -*-
from __future__ import unicode_literals
class PinyinNotFoundException(Exception):
#: 异常信息
message = ''
#: 不包含拼音的字符串
chars = ''
def __init__(self, chars):
self.message = 'No pinyin found for character "{}"'.format(chars)
self.chars = chars
super(PinyinNotFoundException, self).__init__(self.message)