批踢踢實業坊
›
看板
Perl
關於我們
聯絡資訊
返回看板
作者
cryshelen (helen)
看板
Perl
標題
[問題] 請問字串出現次數比對
時間
Thu Jul 3 09:57:42 2008
請問一下假設我有一串字串是aaaaaaaaaa 然後要比對出aaa在上面字串出現的次數 應該要怎麼做好呢?? 我的想法只能想到把字串丟進去陣列中 然後一次抓三個字元去比對 請問還有更好的方法嗎? 感謝 --
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.117.71.207