Python的限制是什么? [英] What are the limits of Python?

查看:141
本文介绍了Python的限制是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我花了几天读了关于C ++和Python,我发现Python是那么简单和容易学习。

I spent a few days reading about C++ and Python and I found that Python is so much simpler and easy to learn.

所以我不知道它真的值得花时间学习吗?

So I wonder does it really worth spending time learning it? Or should I invest that time learning C++ instead?

C ++做什么和Python不能做什么?

What can C++ do and Python can't ?

推荐答案

一些Python限制:

Some Python limits :

- Python很慢。其他答案),但裸骨cPython是C / C ++慢100倍。

- Python is slow. It can be improved in many ways (see other answers) but the bare bone cPython is 100 times slower that C/C++.

这个问题是getter越来越缓和。对于Numpy,Pypy和asyncio,大多数性能问题都没有涵盖,只有非常具体的用例是Python中的瓶颈。

Python打开任何东西。真的很难保护/模糊/限制Python代码。

- Python is opened to anything. It's really hard to protect / obfuscate / limit Python code.

- Python不是炒作。与Ruby不同,Python周围没有酷炫的波浪 Python编码器,比我们说,一个Java或者PHP pro。

- Python is not hype. Unlike Ruby, there is no "cool wave" around Python, and it's still much harder to find a experienced Python coder, than, let's say, a Java or a PHP pro.

- 使用Python后,许多语言似乎是一个痛苦的使用。 你会认为这是好的,但相信我,而不是总是。当你必须在Python项目后去Javascript,你的眼睛在眼泪至少3天。很难开始。

- After using Python, a lot of languages seems to be a pain to use. You'd think it's good, but believe me, not always. When you have to go Javascript after a Python project, your eyes are in tears for at least 3 days. Really hard to get started.

- 很难找到网络托管比流行解决方案,如PHP。

- 作为动态语言,您没有非常方便的重构工具,您可以使用Java和Eclipse或C#和VS。

- As a dynamic language, you don't have the very handy refactoring tools you could get with Java and Eclipse or C# and VS.

- 同样的原因,你不能依赖类型检查作为安全网。这就是为什么pythonistas倾向

- For the same reason, you can't rely on type checking as a safety net. This is why pythonistas tend to follow best practice and write unit tests more often than others.

- 似乎我只是找不到一个IDE一个体面的代码完成

- It seems I just can't find an IDE with a decent code completion. PyDev, Gedit, Komodo, SPE, etc. just don't do it as good as it could be.

使用Python 3类型提示和工具如PyCharm或Sublime Text + Anaconda,情况已经改变了很多。

- 最好的文档仍然只有英语。 / strong>有些人处理不好。

- The best docs are still in English only. Some people don't deal well with it.

- 您必须使用语法。和换行符而不是bracets,但你可以忘记长lambdas,-i和三元操作。

- You have to get use to the syntax. Not only you get spaces and line breaks instead of bracets, but you can forget about long lambdas, --i, and ternary operation.

现在,对我来说,这些不是不学习的原因一个工具,将使你生产更多,同时有更多的乐趣。但是也许只是我: - )

Now, to me, these are not reasons to not learn a tool that will make you produce more while having more fun. But maybe it's just me :-)

老实说,鉴于:



  • 您可以使用Python做任何事情;

  • 您可以使用Python在项目中获得更快的结果

除非你有涉及C ++的专业问题,否则最好先学习Python,你仍然可以学习C ++,这是一个有用的语言的系统编程,嵌入式设备等。

Unless you have professional issues involving C++, you'd better learn Python first, it's more motivating. You still can learn C++ later, it's a useful language for system programming, embedded devices and such.

不要试图同时学习,多任务很少结束

Don't try to learn both at the same times, multitasking rarely ends well.

这篇关于Python的限制是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆