Python学习环境
我希望快速了解 Python:
是否值得通过 ActivePython 接口 在本地工作,然后转到支持其中一项标准的网站框架(Django 或 Pylons)或利用 Google Apps 环境?
我希望尽可能保持互动——让反馈/学习变得更容易。
I'm looking to get up to speed on Python:
Is it worth working locally via the ActivePython interface, then progressing to a website that supports one of the standard frameworks (Django or Pylons) OR utilize the Google Apps environment?
I want to stay as interactive as possible - making feedback/learning easier.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
使用 Python 解释器。 学习 SO 推荐 上许多人的教程之一,您就可以上路了。 一旦您熟悉了该语言,就可以看看 Django 这样的框架,但不要太早。
Go with the Python interpreter. Take one of the tutorials that many people on SO recommend and you're on your way. Once you're comfortable with the language, have a look at a framework like Django, but not sooner.
不明白你的意思。
对于开发
第一选择:闲置——你已经拥有它了。
第二选择:Komodo Edit——非常容易使用,但不像idle那样直接交互。
对于部署应用程序,这取决于您的应用程序。 如果您正在构建桌面应用程序或 Web 应用程序,您仍然可以使用类似的工具。 我更喜欢使用 Komodo Edit 来处理大事情(无论是桌面还是 Web),因为它是一个很好的 IDE。
你问什么? 开发工具还是成品的最终部署?
Not sure what you mean.
For development
First choice: idle -- you already have it.
Second choice: Komodo Edit -- very easy to use, but not as directly interactive as idle.
For deploying applications, that depends on your application. If you're building desktop applications or web applications, you still use similar tools. I prefer using Komodo Edit for big things (either desktop or web) because it's a nice IDE.
What are you asking about? Development tools or final deployment of a finished product?
我学习了使用 docs 和 IDLE (带 shell)。 完全理解Python之后再去Django。
I learned using the docs and IDLE (with shell). Go to Django well after you fully understand Python.
我会从本地开始。 Django 和 Pylons 为编辑/反馈循环增加了另一层复杂性。
除非您的主要重点是制作 Python 网站,否则只需坚持使用编辑器和控制台即可。
I would just start locally. Django and Pylons add another layer of complexity to the edit/feedback loop.
Unless your primary focus is to make python websites, just stick with an editor and the console.
ipython 和你最喜欢的文本编辑器。 花一个小时观看这些截屏视频,您很快就会感到满意。
http://showmedo.com/videotutorials/series?name=CnluURUTV
ipython and your favorite text editor. spend an hour with these screencasts and you'll be comfy with it in no time.
http://showmedo.com/videotutorials/series?name=CnluURUTV
假设您需要一个IDE(=集成开发环境)来获得实践经验,然后还需要学习材料(带有学习章节和示例的教程)-这就是我的建议根据我自己的经验:
Python IDE
1. JetBrains 的 PyCharm 有一个非常棒的全合一 IDE,当您第一次安装并运行它时,它会向您提供一个关于 IDE 使用(代码完成、IntelliSense 等)的非常好的教程,该教程基于简单的 Python 示例。
它是交互式的,因为它解释了每个主题的每个步骤并让您尝试。 然后它会检查您是否做对了,如果做错了就会给出提示。
有社区版(免费)可供下载,您也可以购买专业版或通过订阅获得。
Microsoft 的 Visual Studio 还集成了 Python。
您可以选择社区版(免费),或者购买专业版或企业版。 您还可以订阅 MSDN,这样您就可以随时下载最新版本,无需额外费用成本。
有一些可用的模板项目(Web 项目、Django 等),但开始使用它并不像使用 PyCharm 那样容易,因为在 Visual Studio 中没有可供首次使用的交互式教程。
Python自带的标准IDE当然是IDLE,其最新版本可以在这里下载。
但是,如果您只是需要一个支持 Python 语法的编辑器,那么请查找 NotePad++ 或 Visual Studio Code。 所有这些都是免费的。 要快速进行 Python 实验,还有 pythonfiddle.com 或 pythontutor.com 可用。
使用 pythontutor 您甚至可以以图形方式可视化执行情况。
所有这些提到的应用程序/工具都是免费的。
2. Python 教程
然后是 Python 语言 和 < strong>Django 您可以访问以下网站开始:
www.python.org/about/gettingstarted - 适合初学者
www.learnpython.org - 初学者和初学者 先进的
www.w3schools.com/python - 初学者和初学者 先进的
docs.djangoproject.com - Django 教程和教程 文档
编写你的第一个 Django 应用 - Django 一步一步
RealPython.com - 各种有用的主题
编写一个C# 的包装器 - 从 Python 调用 C# 方法
计算机图形 - Mandelbrot set - 使用 Python 创建 Mandelbrot 集
www.python-lernen.de - 初学者和初学者 高级
请注意,通常这些学习网站都有很多示例,您可以直接使用上面提到的 IDE 进行尝试。
我确信还有更多的东西,但上面提到的学习网站都是免费的。
Assuming you need both - an IDE (= Integrated Development Environment) for hands-on experience and then also learning material (tutorials with learning chapters and examples) - here's what I recommend based my own experience:
1. Python IDE's
PyCharm from JetBrains has a nice all in one IDE and it welcomes you with a very good tutorial regarding the usage of the IDE (code completion, IntelliSense etc) based on simple Python examples when you installed it and run it for the first time.
It is interactive, because it explains each step for each topic and lets you try it. Then it checks if you have done it right and gives hints if not.
There is a Community Edition (free) available for download or you can buy the Professional version or have it via subscription.
Visual Studio from Microsoft has also Python integration.
You can choose between a Community Edition (free), or you buy Professional or Enterprise. You can also have an MSDN subscription, then you can always download the latest versions with no extra costs.
There are some template projects available (web projects, Django etc), but starting with it is not so easy as it is with PyCharm, since in Visual Studio there is no interactive tutorial for first use available.
The standard IDE coming with Python is of course IDLE, its latest version can be downloaded here.
However, if you just need an editor supporting Python Syntax, then look for NotePad++ or Visual Studio Code. All of them are free. For quick experiments with Python, there is also pythonfiddle.com or pythontutor.com available.
With pythontutor you can even visualize the execution graphically.
All of these apps / tools mentioned are free.
2. Python Tutorials
Then for the Python language and Django you can visit the following websites to start:
www.python.org/about/gettingstarted - for beginners
www.learnpython.org - beginners & advanced
www.w3schools.com/python - beginners & advanced
docs.djangoproject.com - Django tutorials & documentation
Writing your first Django App - Django step by step
RealPython.com - Various useful topics
Writing a wrapper for C# - call C# methods from Python
Computer Graphic - Mandelbrot set - Create Mandelbrot sets with Python
www.python-lernen.de - beginners & advanced
Note that usually those learning sites have lots of examples you can directly try out with the IDE's mentioned above.
I am sure there is a lot more out there, but the learning sites mentioned above are free.