PHP的数组类型可同时支持简单列表和字典或散列,但Python却将这两者分开。
PHP has an array type that doubles as as a simple list and a dictionary or hash; Python separates the two.
因为Python的类型是动态的,且具有简洁的数据结构语法,比如列表和字典,所以neo发现它通常可以减少代码行。
Since Python is dynamic typed and has concise syntax for data structures such as list and dictionary, Neo found it usually results in fewer lines of code.
如果可行,他就可以在几小时之内,用Python整洁的列表和字典等数据结构,以及列表理解(list comprehension)等整洁的函数编程功能来编写这个代码。
If it was possible he could write it within a few hours with Python's neat data structures such as list and dictionary, neat functional programming features such as list comprehension.
应用推荐