Python for a Perl programmer

后端 未结 7 1458
时光取名叫无心
时光取名叫无心 2020-12-22 17:01

I am an experienced Perl developer with some degree of experience and/or familiarity with other languages (working experience with C/C++, school experience with Java and Sch

相关标签:
7条回答
  • 2020-12-22 17:34

    I wouldn't try to compare Perl and Python too much in order to learn Python, especially since you have working knowledge of other languages. If you are unfamiliar with OOP/Functional programming aspects and just looking to work procedurally like in Perl, start learning the Python language constructs / syntax and then do a couple examples. if you are making a switch to OO or functional style paradigms, I would read up on OO fundamentals first, then start on Python syntax and examples...so you have a sort of mental blueprint of how things can be constructed before you start working with the actual materials. this is just my humble opinion however..

    0 讨论(0)
  • 2020-12-22 17:43

    Being a hardcore Perl programmer, all I can say is DO NOT BUY O'Reilly's "Learning Python". It is nowhere NEAR as good as "Learning Perl", and there's no equivalent I know of to Larry Wall's "Programming Perl", which is simply unbeatable.

    I've had the most success taking past Perl programs and translating them into Python, trying to make use of as many new techniques as possible.

    0 讨论(0)
  • 2020-12-22 17:46

    Check out the official tutorial, which is actually pretty good. If you are interested in web development you should be ready at that point to jump right in to the documentation of the web framework you will be working with; Python has many to choose from, with zope, cherrypy, pylons, and werkzeug all having good reputations.

    I would not try to search for things specifically meant to help you transition from Perl, which are not to be of as high of quality as references that can be useful for more people.

    0 讨论(0)
  • 2020-12-22 17:54

    This is the site you should really go to. There's a section called Getting Started which you should take a look. There are also recommendations on books. On top of that, you might also be interested in this on "idioms"

    0 讨论(0)
  • 2020-12-22 17:54

    If what you are looking at is succinct, concise reference to python then the book Python Essential Reference might be helpful.

    0 讨论(0)
  • 2020-12-22 17:57

    If you happen to be a fan of The Perl Cookbook, you might be interested in checking out PLEAC, the Programming Language Examples Alike Cookbook, specifically the section that shows the Perl Cookbook code translated into Python.

    0 讨论(0)
提交回复
热议问题