You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
PaddleSpeech/third_party/python-pinyin/tests/utils.py

10 lines
142 B

#!/usr/bin/env python3
def has_module(module):
try:
__import__(module)
return True
except ImportError:
pass