第二节:生物信息学中的编程语言 00队二、Python 1、Python简介 python Donate Socialiee About Downloads Documentation Community Success Stores News Events eth网i品r口iwtn有 Functions Defined 3>>def fib(n) The core of extensible programming is defining functions. 4,三0,1 Python alloves mandatory and optional arguments,keyword hea《n print(d,d】 arguments,and even arbitrary argument lists.More about 0>2 4,, defining lunctions in Python3 print() 2》fH6(100 81123581321345589144233377610987 国 Python is a programming language that lets you work quickly and integrate systems more effectively.>>Learn More Get Started Download Docs ●obs Whether you're new to Python source code and istatlers Documentation for Python's Looking for work or have aPython programming or an experenced are available for downtoad torall standardtbrary.along with tutorials retated positon that you're trying to developer,it's easy to leamn and use er国on国 and guldes,are avaltable ontine hire tor?Our retaunched Python community-run job board is the Latest Python 3 10.7 docs python org Start with our Beginners Gulde plto的 jots python.org 2
二、Python 第二节:生物信息学中的编程语言 1 2 1、Python简介
第二节:生物信息学中的编程语言 OO队二、Python 2、Python安装及开发运行环境的搭建 (1)Vindows下Python的下载和安装 74 Python 3.3.2 Shell ▣回X File Edit Shell Debug Options Windows Help Python3.3.2(v3.3.2:d047928ae3f6,May162013,00:06:53)[MsCv.160064b1t(AM- D64)】on win32 Type "copyright","credits"or "license()m for more information. >>print ('hello world') hello world >>> (2)Linux下Python的安装和配置 galaxy mchen96G:~python Python2.7.3(defau1t,J152013,08:39:51) [GCC 4.6.3]on linux2 Type "help","copyright","credits"or "license"for more information >>print 'hello world' hello world >>> 3
二、Python 第二节:生物信息学中的编程语言 1 3 2、Python安装及开发运行环境的搭建 (1)Windows下Python的下载和安装 (2) Linux下Python的安装和配置
第二节:生物信息学中的编程语言 O例0以二、Python 2、Python安装及开发运行环境的搭建 (3)Python程序的运行 下面演示怎样在Python的交互式界面中将一条DNA序列转换为其反转序列: >>>Seq=“CGACAGCACTCAGTCGATCAGCGACATCGAC"#建立一条DNA序列, 并将其赋值给seq >>>print seq#输出赋值给seq的字符串 CGACAGCACTCAGTCGATCAGCGAC ATCGAC >>>segRev=seq[:-1]#转换DNA链为其反转序列并将其赋值给segRev >>print segRev#输出赋值给segRev的字符串,即原DNA的反转序列 CAGCTACAGCGACTAGCTGACTCAC GACAGC 4
二、Python 第二节:生物信息学中的编程语言 1 4 2、Python安装及开发运行环境的搭建 (3)Python程序的运行 下面演示怎样在 Python 的交互式界面中将一条 DNA 序列转换为其反转序列: >>>seq=“CGACAGCACTCAGTCGATCAGCGACATCGAC" # 建立一条 DNA 序列 , 并将其赋值给 seq >>>print seq # 输出赋值给 seq 的字符串 CGACAGCACTCAGTCGATCAGCGAC ATCGAC >>>seqRev=seq[::-1] # 转换 DNA 链为其反转序列并将其赋值给 seqRev >>>print seqRev # 输出赋值给 seqRev 的字符串 , 即原 DNA 的反转序列 CAGCTACAGCGACTAGCTGACTCAC GACAGC
第二节:生物信息学中的编程语言 00二、Python 2、Python安装及开发运行环境的搭建 (4)Python集成开发环境简介 IDLE >Ipython >Eclipse+pydev >Ulipad >Pyscripter >Komodo和Komodo Edit >WingIDE 5
二、Python 第二节:生物信息学中的编程语言 1 5 2、Python安装及开发运行环境的搭建 (4)Python集成开发环境简介 ➢ IDLE ➢ Ipython ➢ Eclipse+pydev ➢ Ulipad ➢ Pyscripter ➢ Komodo和Komodo Edit ➢ WingIDE