大家好,今天小编关注到一个比较有意思的话题,就是关于学习perl还是python的问题,于是小编就整理了3个相关介绍学习perl还是Python的解答,让我们一起看看吧。
老话题对SA来说用perl还是python比较好?
从三个角度比较:
数据分析:指的是对数据过滤、格式转换、关联、统计的能力。处理不规则的数据,Perl 正则最强,Python也不若,R 很差;R 和 Python 对矩阵(dataframe)形数据支持很强,不过我还是觉得 dplyr 比 pandas 好用一些;R 和 Python 统计能力也都不错。
可视化:Perl 绘图弱爆了,R 有 ggplot,Python 有 matplotlib,如今也支持 ggplot。
生信支持:对生信的支持指的是生物信息特有的一些分析,比如计算GC含量、取反向互补序列、富集、生存分析、WGCNA等。BioPerl 处理计算GC含量、取反向互补序列 这种比较擅长;BioPython 较弱,平时我用的只有读取各种格式序列这个功能;而 Bioconductor 太强大了。
所以,R 无疑是必学的,Python 完全可以取代 Perl,但是看在很多年老的软件使用 Perl 写的份上,建议
学会 Python,看懂 Perl
。做DBA,到底是学python好,还是学perl好?
同样是懒散运维表示。
选python。两种我都曾经用过。1。可以肯定使用py的人越来越多,因为入门相当容易,这适合你的脚本被其他人理解,或者共同维护。
2。就功能性来说,其实脚本语言都差不多。但是py有更好的调试机制,perl语法可以说约束太宽,我是觉得语法太随意,规范化的py看起来更简单易懂,py在面向对象的写法上更容易。
3。两个官方文档我都看过,perl内容没有py完整,perl有些地方很简单的带过。当然py2跟3有些差别,但是不大,perl6跟perl5的差别更大呢。
4。py作为很多开发项目的***语言现在来说会更流行一些,不管是github还是其他地方。所以,你能找到的帮助,解决问题的思路也比perl广。
三种程序语言可读性比较?
最近我在网上看到一些人把各种脚本语言放到一起进行比较。脚本语言:PHP, Perl, Python, Ruby。我的第一反应,以及第二反应是:讨厌!我有我自己的偏好,从没向任何人说过。我喜欢可读性好的程序,程序里出现的任何的特殊字符(任何非数字、字母的字符)都会影响我的阅读速度。这让我思考起我们应该如何设计编程语言?我们语言设计是在进步还是在倒退还是在停步不前?
回到我刚开始写程序的时候,大概是40年前,那时的三大编程语言是FORTRAN、COBOL 以及后来的BASIC。FORTRAN(FORmula TRANSlation的简写)被数学家(我的数学专业的哥哥必须要学它)和科学家们使用。COBOL (其中的B 代表Business)被用于企业应用。BASIC是一种教学语言,在企业里广为使用。COBOL因为它的冗长的语法而受一些人痛恨,而同时却也被另外一些人所喜爱。但它至少是很容易理解的。看看下面循环的写法:
哪一个更显而易见?除非你谎称自己没经验。
BASIC (这里是Visual Basic)某些地方可读性处于中等水平。
到此,以上就是小编对于学习perl还是python的问题就介绍到这了,希望介绍关于学习perl还是python的3点解答对大家有用。