小白入门:用什么写Python?

对于新手而言,学了大概的语法,七七八八的历史、概念、知识,然而最直接的一个问题却无人解答:到底要用什么软件、什么环境来写python?比如.m文件可以用matlab写,java可以用Eclipse写,C语言可以用VC等软件写。那么Python用什么写呢?

和C语言一样,当然你可以直接在电脑上开个黑框写,也可像html一样用记事本写,但是没有可视化、便利化的编译软件,显然不符合当代程序员的个性嘛。所以这里推荐下比较流行的一款:Anaconda。

最早也是其他童鞋推荐的,后来看书,例如《Deep Learning With Python》里面,指定用的编译软件就是Anaconda。

Anaconda有许多优势:

Anaconda Navigator is a desktop graphical user interface (GUI) included in Anaconda® distribution that allows you to launch applications and easily manage conda packages, environments and channels without using command-line commands. Navigator can search for packages on Anaconda Cloud or in a local Anaconda Repository. It is available for Windows, macOS and Linux.

下载链接:https://www.anaconda.com/download/#macos

打开后界面:(我是用macOS系统的)


然后你Launch那个Spyder就可以写python啦!

Spyder is the Scientific PYthon Development EnviRonment:

  • a powerful interactive development environment for the Python language with advanced editing, interactive testing, debugging and introspection features
  • and a numerical computing environment thanks to the support of IPython (enhanced interactive Python interpreter) and popular Python libraries such as NumPy (linear algebra), SciPy (signal and image processing) or matplotlib (interactive 2D/3D plotting).

Spyder may also be used as a library providing powerful console-related widgets for your PyQt-based applications – for example, it may be used to integrate a debugging console directly in the layout of your graphical user interface.

下面我们来示范一下:

就是这么简单,然后就可以在这里写啦。

当然,作为新时代的码农,代码主要是靠copy啦,copy进来跑就好了嘛。

之后要跑什么高级点的程序,再自己慢慢探索吧!

开始在python的海洋里遨游吧!!!~






猜你喜欢

转载自blog.csdn.net/lyxleft/article/details/80933590
今日推荐