- 阅读权限
- 255
- 威望
- 0 级
- 论坛币
- 6495 个
- 通用积分
- 2504.0561
- 学术水平
- 245 点
- 热心指数
- 263 点
- 信用等级
- 155 点
- 经验
- 18620 点
- 帖子
- 436
- 精华
- 0
- 在线时间
- 1396 小时
- 注册时间
- 2008-6-13
- 最后登录
- 2024-11-24
|
- clear
- input str20 a
- "4,4,5,6"
- "5,5,5,5"
- "1,3,1"
- "1,1"
- end
- gen b = substr(cond(strpos(a,"0"), "0,", "") + ///
- cond(strpos(a,"1"), "1,", "") + ///
- cond(strpos(a,"2"), "2,", "") + ///
- cond(strpos(a,"3"), "3,", "") + ///
- cond(strpos(a,"4"), "4,", "") + ///
- cond(strpos(a,"5"), "5,", "") + ///
- cond(strpos(a,"6"), "6,", "") + ///
- cond(strpos(a,"7"), "7,", "") + ///
- cond(strpos(a,"8"), "8,", "") + ///
- cond(strpos(a,"9"), "9,", "") , ///
- 1, ///
- length(cond(strpos(a,"0"), "0,", "") + ///
- cond(strpos(a,"1"), "1,", "") + ///
- cond(strpos(a,"2"), "2,", "") + ///
- cond(strpos(a,"3"), "3,", "") + ///
- cond(strpos(a,"4"), "4,", "") + ///
- cond(strpos(a,"5"), "5,", "") + ///
- cond(strpos(a,"6"), "6,", "") + ///
- cond(strpos(a,"7"), "7,", "") + ///
- cond(strpos(a,"8"), "8,", "") + ///
- cond(strpos(a,"9"), "9,", "")) - 1)
复制代码
|
|