摘要:
代码参考:https://github.com/liuhuanyong/QASystemOnMedicalKG 自己做了的一些注释和改动:https://github.com/taishan1994/medical_question_and_answer_knowledge_graph/ 环境依赖 阅读全文
摘要:
##Python中提供了3个判断字符串的方法。 分别是: 字符串.isdecimal() 字符串.isdigit() 字符串.isnumeric() 这三个方法都可以判断字符串是否是由纯阿拉伯数字构成,即0-9组成的数字。 这三个方法的区别: 字符串.isdecimal() :只能判断0-9组成的数 阅读全文