| 查看: 243 | 回复: 0 | ||
[求助]
PHP编程
|
|
大家好,我这里有一个PHP编程的题,是先将字符串:tomorrow_and_tomorrow_and_tomorrow转换成bwt_t: wwwdd__nnoooaatttmmmrrrrrrooo__$ooo;再转换成t_back: $worromot_dna_worromot_dna_worromot。这后一步的程序我不会写(也就是“function reverseBwt($bw){”这一步),求高手指点。谢谢各位了 程序: // Dr. Han’s implementation of the BWT // 20140408 $t = "tomorrow_and_tomorrow_and_tomorrow"; $bwt_t = bwt($t); $tBack = reverseBwt($bwt_t); print "t: $t\n"; print "bwt_t: $bwt_t\n"; print "t_back: $tBack\n"; print "Job done!\n"; function bwt($t){ …… } function reverseBwt($bw){ …… } 结果: ‐bash‐3.2$ php bwt.php t: tomorrow_and_tomorrow_and_tomorrow bwt_t: wwwdd__nnoooaatttmmmrrrrrrooo__$ooo t_back: $worromot_dna_worromot_dna_worromot Job done! ‐bash‐3.2$ |
» 猜你喜欢
什么是人一生最重要的?
已经有3人回复
过年走亲戚时感受到了所开私家车的鄙视链
已经有10人回复
今年春晚有几个节目很不错,点赞!
已经有12人回复
情人节自我反思:在爱情中有过遗憾吗?
已经有13人回复
体制内长辈说体制内绝大部分一辈子在底层,如同你们一样大部分普通教师忙且收入低
已经有12人回复
基金正文30页指的是报告正文还是整个申请书
已经有5人回复













回复此楼