根据姓名判断性别
import ngender
if __name__ == '__main__':
print(ngender.guess('宋丹丹'))
#('female', 0.9759486128949907) 女
print(ngender.guess('赵本山'))
#('male', 0.9836229687547046) 男
if __name__ == '__main__':
print(ngender.guess('宋丹丹'))
#('female', 0.9759486128949907) 女
print(ngender.guess('赵本山'))
#('male', 0.9836229687547046) 男
pip install ngender