ADM-201 dump PMP dumps pdf SSCP exam materials CBAP exam sample questions

3/44 从这里开始 – 译学馆
未登陆,请登陆后再发表信息
最新评论 (0)
播放视频

3/44 从这里开始

Getting Started | Python for Beginners [3 of 44]

如何开始使用Python
>> Now that we know about Python,
既然我们已经了解了Python
the next question is, how do we get started?
接下来的问题就是该如何开始使用它?
Well, the first thing that we’re going to need is somewhere for Python to run.
首先 我们需要搭建Python的运行环境
Python is an interpreted language,
Python是一门解释型编程语言
so you will need a runtime in which Python can execute.
所以你需要一个可以执行Python的解释器
Fortunately, all that you need to do is head on over to
幸运的是你只需要通过访问
Python.org/downloads
网站Python.org/downloads
and you can go ahead and grab it from there.
来获取它
If I bring up that little site,
如果我打开这个标签
you’ll notice there is python.org and
你会发现这是python官网
I’ve got downloads right here
我可以在这里下载
and I could click on “Downloads” and then
点击”Download”
I can go ahead and install Python right from there.
然后进入Python下载界面
Now, I’m not going to walk through how to do the installation,
今天我不会演示安装过程
I’m assuming that you know how to install something
我假设你们知道如何在自己的操作系统上
onto your particular operating system of choice.
安装对应的软件
But what I do want to highlight here,
但是我要特别提醒
is you may notice as you’re poking around inside of this site
是你会注意到这个网站上
that it references Pythons version 3 point in my case seven
有Python3系列版本(我自己用的3.7版本)
or Python 2 point something.
或python2系列版本
You might be wondering, well,
你可能会想
which version should I use?
我应该用哪一个版本?
The answer really is Python 3
毫无疑问是Python3
Python 2 is there for legacy support.
Python2只是用来维护一些旧的项目
Now, you will notice some applications still require Python 2
现在 你可能会发现有些程序依然需要Python2的支持
And that’s fine and that will come up from time to time.
这没关系 并且这个问题会不时出现
But for the applications that you are going to be creating,
但是如果你要开发新的应用
you really do want to be using Python version 3.
最好还是使用Python3
The next thing that we’ll need is something in which to write Python.
接下来我们要用到Python的编译器
In our case, we’re going to be utilizing Visual Studio Code.
我们的项目是使用VS Code
Now, if you want, you can go ahead and use Notepad or
如果你愿意 你可以用Notepad
Emacs you know, fill in the blank from here,
Emacs 或其他随便什么编译器
but VS code is going to give you
但是VS code 会让你在
A lot of fantastic support for getting in and writing your Python.
进入和编写代码的时候给你很多非常棒的支持
Now, in order to install VS code,
现在 你可以通过访问
you can just head on over to code.visualstudio.com and again,
code.visualstudio.com来下载安装VS code
walk through the installation for your particular operating system.
还有 下载安装适合你操作系统的版本
The last thing that we’re going to need is a little plug-in
最后我们需要一个VS code小插件
for Visual Studio and I already have that up on my browser here.
我已经在浏览器里面打开了
That is going to help enable
这可以让Python
some additional functionality for Python inside of VS code,
拥有一些基于VS code的附加功能
and help give you a better experience
会带给你更好的体验
when you get in and start writing your code.
当你进入VS code开始写代码的时候
You’ll notice that when Susan and I get in
你会注意到苏珊和我
and we start writing our Python and VS Code says,
准备用VS code编写Python时 VS code就会提示
“Hey, did you want to use this?
嗨 你想使用这个吗?
Hey, did you want to use this?”
嗨 你想用这个吗?
All of that is there because of that Python extension.
这是因为它推荐的都是Python的扩展插件
Again, all of the URLs that you’re going to need are listed right there.
重复一遍 你将要用到的链接都在这里
I’m going to go ahead and break this video,
我们先中断一下视频
and then we’ll come back and do a real quick demo
然后我们回来快速的演示一遍
On how to install the extension inside of VS code.
如何在VS code里安装扩展插件

发表评论

译制信息
视频概述

Python 安装版本选择,安装环境及编译器

听录译者

收集自网络

翻译译者

Twodogs

审核员

审核员Y

视频来源

https://www.youtube.com/watch?v=CXZYvNRIAKM

相关推荐