Project1

标题: 请问,怎么判断在句子中有“XXX”? [打印本页]

作者: 冰舞蝶恋    时间: 2011-3-19 14:47
标题: 请问,怎么判断在句子中有“XXX”?
比如:
有一句“我的名字是:XXX”
和一句“我的名字是:ZZZ”
怎么读取+判断这句里有XXX?dsu_plus_rewardpost_czw
作者: 蕾米莉亚·斯卡雷特    时间: 2011-3-19 14:50
“我的名字是:XXX”.include?("XXX")





欢迎光临 Project1 (https://rpg.blue/) Powered by Discuz! X3.1