楼主: 大念
897 3

[编程问题求助] 字符运算 [推广有奖]

  • 0关注
  • 0粉丝

学科带头人

8%

还不是VIP/贵宾

-

威望
0
论坛币
5750 个
通用积分
27.9118
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
630 点
帖子
838
精华
0
在线时间
489 小时
注册时间
2011-5-20
最后登录
2016-5-30

受到警告 楼主
大念 发表于 2013-8-11 11:04:09 |AI写论文
提示: 受到警告  蓝色 违反论坛规定 2013-8-11 22:53
提示: 该帖被管理员或版主屏蔽  蓝色 违反论坛规定 2013-8-11 22:53

沙发
ywh19860616 发表于 2013-8-11 11:47:18
楼主,你自己有尝试看帮助文件?
  strpos(s1,s2)
       Domain s1:    strings (to be searched)
       Domain s2:    strings (to search for)
       Range:        integers 0 to 244
       Description:  returns the position in s1 at which s2 is first found; otherwise, it returns 0.
                         strpos("this","is") = 3
                         strpos("this","it") = 0


substr(s,n1,n2)
       Domain s:     strings
       Domain n1:    integers 1 to 244 and -1 to -244
       Domain n2:    integers 1 to 244 and -1 to -244
       Range:        strings
       Description:  returns the substring of s, starting at column n1, for a length of n2. If n1 < 0, n1 is interpreted as distance from the end of the string; if
                         n2 = . (missing), the remaining portion of the string is returned.

                         substr("abcdef",2,3) = "bcd"



一份耕耘,一份收获。

藤椅
大念 发表于 2013-8-11 19:14:53
还是不太懂!不过还是要谢谢您的回答!

板凳
primmxz 在职认证  发表于 2013-8-11 19:22:15
大念 发表于 2013-8-11 19:14
还是不太懂!不过还是要谢谢您的回答!
不要看陈传波的
要是看的话,必定走弯路

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注jltj
拉您入交流群
GMT+8, 2026-1-1 06:40