曲径通幽论坛
标题:
words 函数-- 统计字符串中的单词个数
[打印本页]
作者:
beyes
时间:
2011-1-28 01:00
标题:
words 函数-- 统计字符串中的单词个数
语法
:
$(words <string>)
说明
:
统计 string 中的单词个数
示例代码
:
[Plain Text]
纯文本查看
复制代码
string = are you ok
all:
@echo $(words $(string))
输出
:
# make
3
欢迎光临 曲径通幽论坛 (http://www.groad.net/bbs/)
Powered by Discuz! X3.2