欢迎来到三一办公! | 帮助中心 三一办公31ppt.com(应用文档模板下载平台)
三一办公
全部分类
  • 办公文档>
  • PPT模板>
  • 建筑/施工/环境>
  • 毕业设计>
  • 工程图纸>
  • 教育教学>
  • 素材源码>
  • 生活休闲>
  • 临时分类>
  • ImageVerifierCode 换一换
    首页 三一办公 > 资源分类 > PPT文档下载  

    生物资讯程式语言应.ppt

    • 资源ID:6317138       资源大小:332.82KB        全文页数:26页
    • 资源格式: PPT        下载积分:15金币
    快捷下载 游客一键下载
    会员登录下载
    三方登录下载: 微信开放平台登录 QQ登录  
    下载资源需要15金币
    邮箱/手机:
    温馨提示:
    用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)
    支付方式: 支付宝    微信支付   
    验证码:   换一换

    加入VIP免费专享
     
    账号:
    密码:
    验证码:   换一换
      忘记密码?
        
    友情提示
    2、PDF文件下载后,可能会被浏览器默认打开,此种情况可以点击浏览器菜单,保存网页到桌面,就可以正常下载了。
    3、本站不支持迅雷下载,请使用电脑自带的IE浏览器,或者360浏览器、谷歌浏览器下载即可。
    4、本站资源下载后的文档和图纸-无水印,预览文档经过压缩,下载后原文更清晰。
    5、试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。

    生物资讯程式语言应.ppt

    生物資訊程式語言應用 Part 3,Perl Language,Outline,Introduction.Installation.Background knowledge in Perl.Data type.Control structure.Regular expression.Overall practice.,Introduction,Perl is free software.Larry Wall(He is a linguist).The history of Perl language.1987-Perl 1.0.1994-Perl 5(contain OOP).OOP(object oriented programming)物件導向程式語言Perl 5.8.0 support unicode.2003 Perl 6.Now.Characteristic.The script language base on C language(具跨平台的特性).,Installation,Perl is the default language in any distribution of Linux.Perl can be executed and worked by the ActivePerl package in windows platform.How to edit Perl program?Notepad in windows,UltraEdit and any text editor.,Installation cont.,Practice.Download ActivePerl software file.Install ActivePerl.,Background knowledge,Data type in Perl.Control structure in Perl.Regular expression in Perl.,Data type in Perl,Like EnglishScalar(純量變數)比喻單件事物.數字常數$x=5;字串常數$y=“Hello”;The special expression of Perl.Print“Hello”.”World”;(Hello World).Print“Hello”*2;(HelloHello).字串與數字間的轉換$x=123;$y=“456”;Print$x+$y;(數字)Print$x.$y;(字串),Data type in Perl cont.,Practice.Using scalar.Special expression.字串與數字間的轉換.,Data type in Perl cont.,Array(陣列).The definition of Array in Perl.student=(9154610,9154611,”9154612”);my student;$student0=9154610“;$student1=“9154611“;$student2=“9154611”;Array 單數的取用.print$student0,n;print$student1n;print$student2.n;Array 複數的取用.print student,“n”;(全部一起print出來)以單數取用方式print出複數資料(in control structure chapter).,Data type in Perl cont.,Practice.Using array(definition).單數取用.複數取用.,Data type in Perl cont.,Hash(雜湊).$純量=單一=單數陣列=串列=複數%雜湊=串列=複數定義陣列=類似ipstudent=(9154610,9154611,”9154612”);定義雜湊=類似dns%students=(Peter=9154610,Mary=9154611,Cathy=9154612);,Data type in Perl cont.,Hash(雜湊).定義雜湊=類似dns%students=(Peter=9154610,Mary=9154611,Cathy=9154612);Hash 單數的取用.print$studentsPeter,n;print$studentsMary,n;print$studentsCathy,n;Hash 複數的取用.print%students,n;以單數取用方式print出複數資料(in control structure chapter).,Data type in Perl cont.,Practice.Using hash(definition).單數取用.複數取用.,Control structure in Perl,If statement(陳述式).For loop(迴圏).Foreach loop(迴圏).While loop(迴圏).,Control structure in Perl cont.,If 條件判斷,If 條件成立則執行,若If 條件不成立則執行(else statement可有可無),If statement(陳述式).,Control structure in Perl cont.,Practice.If statement.If-else statement.,Control structure in Perl cont.,For loop(迴圏).,$#array:取得array的大小$i+:等同於$i=$i+1;$sum+=$i:等同於$sum=$sum+$i;,Control structure in Perl cont.,Practice.For loop 迴圏.以array單數取用方式print出array複數資料.以hash單數取用方式print出hash複數資料.,Control structure in Perl cont.,Foreach loop(迴圏).Like for loop.,For loop,Foreach loop,Control structure in Perl cont.,Practice.Foreach loop(迴圏).以array單數取用方式print出array複數資料.以hash單數取用方式print出hash複數資料.,Control structure in Perl cont.,While loop(迴圏).,While 判斷式,Control structure in Perl cont.,Practice.While loop(迴圏).1+2+100.,Regular expression in Perl,樣式(pattern)的表達.繫結符號=.=可用來將右邊的樣式比對左邊的字串純量,成功傳回1,失敗傳回0.表否定則可改用!通常搭配判斷式使用.,Regular expression in Perl cont.,比對.$:代表字串中比對成功之前的部分.$&:代表字串中比對成功的部分.$:代表字串中比對成功之後的部分.,Regular expression in Perl cont.,字元取代.$var=tr/xxx/yyy/把變數$var 內的 xxx 字元都逐一代換成 yyy 字元字串取代.$var=s/xxx/yyy/把變數$var 內的第一個 xxx 子字串整個代換成 yyy 子字串$var=s/xxx/yyy/igI:忽略大小寫g:取代$var 字串內所有符合的子字串,Regular expression in Perl cont.,Practice.比對.字元取代.字串取代.,

    注意事项

    本文(生物资讯程式语言应.ppt)为本站会员(牧羊曲112)主动上传,三一办公仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知三一办公(点击联系客服),我们立即给予删除!

    温馨提示:如果因为网速或其他原因下载失败请重新下载,重复下载不扣分。




    备案号:宁ICP备20000045号-2

    经营许可证:宁B2-20210002

    宁公网安备 64010402000987号

    三一办公
    收起
    展开