小白入门:用什么写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的海洋里遨游吧!!!~






  • 14
    点赞
  • 45
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值