如何使用 CLIPS 中的读取规范区分大小写的输入?
我是 CLIPS 的初学者。我需要使用 read
函数与用户交互。我的问题是,如果用户说“是”与“是”和“是”不同。 我在文档中查找了很长时间,但找不到任何可以标准化我的输入的内容。我尝试使用 upper
或 normalize
之类的东西,但 CLIPS 中不存在。
I am a beginner in CLIPS. I need to interact with the user using read
function. My problem is if the user says Yes is different to YES and to yes.
I was looking a long time in the documentation but I couldn't find any to normalize my input. I try with things like upper
or normalize
but don't exist in CLIPS.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
查看 CLIPS 6.4 基本编程指南 (http://www.clipsrules.net/Documentation.html) 第 12.3 节“字符串函数”。第 12.3.7 节,将字符串转换为大写,描述了 upcase 函数,第 12.3.8 节,将字符串转换为小写,描述了 lowcase 函数。
Look in the CLIPS 6.4 Basic Programming Guide (http://www.clipsrules.net/Documentation.html) under section 12.3, String Functions. Section 12.3.7, Converting a String to Uppercase, describes the upcase function, and section 12.3.8, Converting a String to Lowercase, describes the lowcase function.