C#中的Smile Dtection源代码 [英] Smile Dtection source code in C#
本文介绍了C#中的Smile Dtection源代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
任何人都可以给我提供微笑检测代码. :)
Can any one please provide me the smile detection code. :)
推荐答案
这里是一种相当简单的方法,但是您可以在此基础上制作生产版本:
Here is a rather simplistic approach, but you can build upon it to make a production version:
bool DetectSmile(string s) {
return s.IndexOf(":)") >= 0 || s.indexOf(":-)") >= 0;
}
:laugh::laugh::laugh:
:laugh: :laugh: :laugh:
这篇关于C#中的Smile Dtection源代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文