Java -> Python?

前端 未结 5 862
深忆病人
深忆病人 2021-01-30 02:51

Besides the dynamic nature of Python (and the syntax), what are some of the major features of the Python language that Java doesn\'t have, and vice versa?

5条回答
  •  青春惊慌失措
    2021-01-30 03:14

    One key difference in Python is significant whitespace. This puts a lot of people off - me too for a long time - but once you get going it seems natural and makes much more sense than ;s everywhere.

    From a personal perspective, Python has the following benefits over Java:

    • No Checked Exceptions
    • Optional Arguments
    • Much less boilerplate and less verbose generally

    Other than those, this page on the Python Wiki is a good place to look with lots of links to interesting articles.

提交回复
热议问题