📅  最后修改于: 2022-03-11 14:45:34.055000             🧑  作者: Mango
import gender_guesser.detector as gender
d = gender.Detector()
print(d.get_gender(u"Bob"))
male
print(d.get_gender(u"Sally"))
female
print(d.get_gender(u"Pauley")) # should be androgynous
andy