金点网络-全网资源,一网打尽
  • 网站首页
    • 金点部落
    • 小游戏
    • OpenAPI
    • 设计资产导航
    • 升级会员
  • 技能学习
    • 体育运动
    • 办公教程
    • 口才演讲
    • 小吃技术
    • 建站教程
    • 摄影教程
    • 棋牌教程
    • 网赚教程
      • 爆粉引流
      • 自媒体
      • 贴吧引流
  • 网站源码
    • 商城/淘客/交易
    • 小说/漫画/阅读
    • 影视/音乐/视频
    • 微信/微商/微擎
    • 理财/金融/货币
    • 模板/主题/插件
  • 游戏源码
    • 精品网单
    • 端游源码
    • 手游源码
    • 页游源码
  • 素材资料
    • 电子文档
    • 综合资料
    • 考研资料
    • 设计素材
    • 音频讲座
      • 人文艺术
      • 名师讲座
      • 说书小说
  • 软件工具
    • Windows软件
    • MacOS软件
    • Android软件
  • 寄售资源
    • 游戏源码
    • 网站源码
    • 软件源码
  • 公益服
登录/注册
  • 专享大神特权
立即开通开通会员抄底价

Python数据分析(中英对照)·Python Basics Python 基础

作者 : jamin 本文共4240个字,预计阅读时间需要11分钟 发布时间: 2020-10-18 共1649人阅读

1.1.1: Python Basics Python 基础

Python是一种解释语言。
Python is an interpreted language.
这意味着您可以运行Python程序,而无需首先链接或编译它们。
That means you can run your Python programs without the need to first link or compile them.
Python有两种不同的模式。
Python has two different modes.
这些模式称为交互模式和标准模式。
These modes are called the interactive mode and the standard mode.
交互模式用于一次试验一行代码或一个表达式。
The interactive mode is meant for experimenting your code one line or one expression at a time.
相比之下,标准模式非常适合从头到尾运行程序。
In contrast, the standard mode is ideal for running your programs from start to finish.
我自己经常在这两种Python模式之间切换。
Myself, I often alternate between these two Python modes.
如果手头的任务相对简单,我倾向于直接以标准模式编写代码。
If the task at hand is relatively easy, I tend to write the code directly in the standard mode.
但是,如果代码对我来说更具挑战性,我倾向于在交互模式下花费更多的时间。
However, if the code is more challenging to me,I tend to spend more time in the interactive mode.
这样,我可以在将每一行导入标准模式之前完善每一行。
That way I can perfect every line before I import that to the standard mode.
Python程序往往比C或C++或java中的等效程序短得多。
Python programs tend to be much shorter than equivalent programs in C or C++ or Java.
这是因为Python是一种高级语言。
This is because Python is a high-level language.
它的数据类型允许您以非常简洁的方式表达复杂的操作。
It has data types that allow you to express complex operations in a very concise manner.
最后,您应该知道Python是如何命名的。
Finally, you should know how Python gets its name.
Python并不像你想象的那样以蛇命名。
Python is not named after the snake, as you might have imagined.
事实上,Python的名字来源于《英国广播公司》MythyPython的飞行马戏团,这是我极力推荐的一个节目。
In fact, Python is named after the inimitable BBC show Monty Python’s Flying Circus, a show that I highly recommend.
除了使用核心Python之外,我们还将使用几个Python包来执行科学计算。
In addition to using just core Python, we’ll be using several Python packages to perform scientific computations.
但是,我们将使用Python发行版,而不是一次手动安装200多个包。
But instead of installing more than 200 packages manually one at a time, we will be using a Python distribution.
发行版由核心Python包和数百个模块组成,所有模块都可以无缝地协同工作。
A distribution consists of the core Python package and several hundred modules, all working seamlessly together.
所有这些都可以通过一次下载获得。
All of this is available through a single download.
目前有几种Python发行版可用。
There are currently several Python distributions available.
我们将在本课程中使用的是Anaconda Python发行版。
The one we will be using in this course is called the Anaconda Python distribution.
在录制时,此重新分发支持近300个包,并且几乎每天都会添加新包。
At the time of recording, this redistribution supports almost 300 packages and new packages are added almost daily.
此外,Anaconda还包括两个非常有用的开发环境,分别称为Jupyter和Spyder。
In addition, Anaconda also includes two very useful development environments,which are called Jupyter and Spyder.
本课程将广泛使用这两种环境。
This course will be making extensive use of both of these environments.
经常会出现以下问题:
Questions often come up:
我应该学习Python 2还是Python 3?
Should I learn Python 2 or Python 3?
事实是,有些人更喜欢Python 2,有些人更喜欢Python 3。
And the truth of the matter is, some people like Python 2 better, some people like Python 3 better.
了解更多关于Python 2和Python 3问题的有用地方是Python.org。
A useful place for learning more about the Python 2 versus Python 3 issue is python.org.
该网站提供了一份特别简明的情况摘要。
That website provides an especially concise summary of the situation.
根据该网站,Python2是传统的,而Python3是该语言的现在和未来。
According to the website, Python 2 is legacy,whereas Python 3 is the present and future of the language.
事实上,Python3已经存在好几年了。
Python 3 has, in fact, been around for already several years.
Python 3.0于2008年发布。
Python 3.0 was released in 2008.
那么Python3有什么缺点吗?
So are there any downsides to Python 3?
实际上,只有一个主要的缺点,那就是Python3与Python2不向后兼容。
Well, there is really only one principal downside which is that Python 3 is not backwards compatible with Python 2.
这意味着,如果您用Python3编写代码,运行Python2的人将无法运行该代码。
What that means, if you write your code in Python 3, somebody running Python 2 will not be able to run that code.
这就是我们在本课程中使用Python 3的原因。
Here is why we will be using Python 3 in this course.
所有新的标准库改进只在Python3中默认可用。
All new standard library improvements will only be available by default in Python 3.
Python3对于新手来说也更容易学习,核心语言的几个方面是
Python 3 is also easier for newcomers to learn,and several aspects of the core language are
比Python2中的更加一致。
more consistent than those in Python 2.
Python3还消除了许多容易让刚开始学习Python的程序员绊倒的怪癖。
Python 3 also eliminates many of the quirks that can easily trip up beginning programmers learning Python.
因此,现在是学习Python 3的好时机。
So this is a good time to be learning Python 3.
许多核心Python开发人员认为,Python 3显然是新项目学习的首选,
Many of the core Python developers believe that Python 3 became the obvious choice to learn for new projects,
从2015年9月开始。
starting in September 2015.
建议人们学习Python 3,除非他们有很好的理由学习Python 2。
The recommendation is that people learn Python 3 unless they have a very good reason to be learning Python 2.
所以,除非你有非常特殊的理由学习Python 2,否则我想邀请你和我一起学习Python 3。
So unless you have a very special reason to learn Python 2,I would like to invite you to learn Python 3 with me.

Python 数据分析
本站所提供的部分资源来自于网络,版权争议与本站无关,版权归原创者所有!仅限用于学习和研究目的,不得将上述内容资源用于商业或者非法用途,否则,一切后果请用户自负。您必须在下载后的24个小时之内,从您的电脑中彻底删除上述内容资源。如果上述内容资对您的版权或者利益造成损害,请提供相应的资质证明,我们将于3个工作日内予以删除。本站不保证所提供下载的资源的准确性、安全性和完整性,源码仅供下载学习之用!如用于商业或者非法用途,与本站无关,一切后果请用户自负!本站也不承担用户因使用这些下载资源对自己和他人造成任何形式的损失或伤害。如有侵权、不妥之处,请联系站长以便删除!
金点网络-全网资源,一网打尽 » Python数据分析(中英对照)·Python Basics Python 基础

常见问题FAQ

免费下载或者VIP会员专享资源能否直接商用?
本站所有资源版权均属于原作者所有,这里所提供资源均只能用于参考学习用,请勿直接商用。若由于商用引起版权纠纷,一切责任均由使用者承担。
是否提供免费更新服务?
持续更新,永久免费
是否经过安全检测?
安全无毒,放心食用
jamin

jamin 大神

下一篇
网络协议-组播介绍

相关推荐

Python数据分析(中英对照)·Objects 对象

Python数据分析(中英对照)·Objects 对象

Python数据分析(中英对照)·Expressions and Booleans 表达式和布尔值

Python数据分析(中英对照)·Expressions and Booleans 表达式和布尔值

Python数据分析(中英对照)·Introduction to Matplotlib and Pyplot-Matplotlib 和 Pyplot 介绍

Python数据分析(中英对照)·Introduction to Matplotlib and Pyplot-Matplotlib 和 Pyplot 介绍

Python数据分析(中英对照)·Modules and Methods 模块和方法

Python数据分析(中英对照)·Modules and Methods 模块和方法

Python数据分析(中英对照)·Numbers and Basic Calculations 数字和基本计算

Python数据分析(中英对照)·Numbers and Basic Calculations 数字和基本计算

标签云
Android Atom ExecutorService ForkJoin GM GM后台 GM授权后台 H5 Java Javascript Linux手工服务端 pipbestcom Python ReentrantLock synchronized ThreadLocal volatile Win一键即玩服务端 一键端 传奇 写作 创业 单机 后台 商业端 外网 安卓 安卓苹果双端 工具 手工端 手游 搭建教程 教程 数据分析 文案 游戏源码 端游 经典 网单 职场 自媒体 视频教程 详细搭建教程 运营后台 页游

近期文章

  • 回合手游【逍遥西游之繁华西游】最新整理单机一键既玩镜像服务端_Linux手工端_GM后台_教程
  • 最新整理精品回合制手游【天书奇谈3D混沌完整版】VM一键单机版_linux手工外网端_隐盟视频教程_授权GM后台_双端
  • 典藏修真页游【诸仙列传OL】最新整理Win系服务端_GM工具_详细外网搭建教程
  • MT3换皮MH【浮生若梦尊享挂机修复版】最新整理单机一键即玩镜像端_Linux手工服务端_安卓苹果双端_GM后台_详细搭建教程
  • 大话回合手游【最新引擎之缥缈西游渡劫版】最新整理Linux手工服务端_安卓苹果双端_管理后台_CDK后台_详细搭建教程_视频教程

分类

  • | wordpress插件 |
  • | wordpress模板 |
  • | 其它模板 |
  • | 帝国模板 |
  • | 织梦插件 |
  • | 织梦模板 |
  • A5源码
  • Android软件
  • APP引流
  • E语言
  • H5
  • LUA
  • QQ营销
  • SEO推广
  • Windows软件
  • 体育运动
  • 信息数据
  • 创业专题
  • 办公教程
  • 口才演讲
  • 名师讲座
  • 商城/淘客/交易
  • 小吃技术
  • 小说/漫画/阅读
  • 建站教程
  • 引流脚本
  • 影视/音乐/视频
  • 影视资源
  • 微信/微商/微擎
  • 微信小程序
  • 微信营销
  • 微擎模块
  • 手游源码
  • 技能学习
  • 抖音课程
  • 摄影教程
  • 棋牌教程
  • 模板/主题/插件
  • 游戏源码
  • 爆粉引流
  • 理财/金融/货币
  • 生活老师
  • 电商客
  • 电子文档
  • 电脑教程
  • 社群营销
  • 站长工具
  • 精品网单
  • 系统工具
  • 素材资料
  • 综合资料
  • 编程经验
  • 网站源码
  • 网络安全
  • 网赚教程
  • 网赚源码
  • 考研资料
  • 脚本/AI/智能
  • 自媒体
  • 英语学习
  • 营销软件
  • 设计素材
  • 说书小说
  • 贴吧引流
  • 软件工具
  • 软文营销
  • 逆向软件
  • 音频讲座
  • 页游源码

提供最优质的资源集合

立即加入 友好社区
金点网络-全网资源,一网打尽

新一代全网资源综合门户网(www.pipbest.com-金点网络)专注服务于互联网,提供各类最新最全的免费源码下载(PHP、ASP、JSP、.NET),更提供免费工具,免费源码下载,软件下载,素材下载,赚钱教程下载,交流论坛等网站运营相关的一切内容,为网友搜罗最有价值的网站源码下载与技术教程等服务!

服务目录
  • 金点OpenAPI
  • 金点云
  • 金点支付
友情链接
  • 数媒派
  • 国家电网
快速搜索

本站由Nice强力驱动

声明: 本站部分内容属于原创转载请注明出处 如有侵权行为请严格参照本站【版权声明】与我们联系,我们将在48小时内容进行处理!

本站部分内容属于原创转载请注明出处 如有侵权行为请严格参照本站【版权声明】与我们联系,我们将在48小时内容进行处理!
© 2016-2023 PipBest.Com - 金点网络 & 金点部落. All rights reserved 京ICP备2022005359号-1
  • 关注有礼
  • 签到
  • 客服
    官方QQ群 常见问题 FAQ

    在线客服

    点我联系

    直接说出您的需求!
    切记!带上资源连接与问题!

    工作时间: 9:30-21:30

  • 暗黑
    模式
  • 全屏
  • 投稿
    赚钱
  • 首页

  • 签到

  • 切换

  • 客服

金点网络-全网资源,一网打尽
  • 登录
  • 注册
or
or
忘记密码?
金点网络-全网资源,一网打尽
  • 网站首页 ►
    • 金点部落
    • 小游戏
    • OpenAPI
    • 设计资产导航
    • 升级会员
  • 技能学习 ►
    • 体育运动
    • 办公教程
    • 口才演讲
    • 小吃技术
    • 建站教程
    • 摄影教程
    • 棋牌教程
    • 网赚教程 ►
      • 爆粉引流
      • 自媒体
      • 贴吧引流
  • 网站源码 ►
    • 商城/淘客/交易
    • 小说/漫画/阅读
    • 影视/音乐/视频
    • 微信/微商/微擎
    • 理财/金融/货币
    • 模板/主题/插件
  • 游戏源码 ►
    • 精品网单
    • 端游源码
    • 手游源码
    • 页游源码
  • 素材资料 ►
    • 电子文档
    • 综合资料
    • 考研资料
    • 设计素材
    • 音频讲座 ►
      • 人文艺术
      • 名师讲座
      • 说书小说
  • 软件工具 ►
    • Windows软件
    • MacOS软件
    • Android软件
  • 寄售资源
    ►
    • 游戏源码
    • 网站源码
    • 软件源码
  • 公益服
×
u3** 刚刚下载了 爆款吸金文案训练

    全网资源·一网打尽

  • 金点出品,必属精品!
  • 发布原创内容,获取高额提成!
  • 我们与你共创美好数字生态!
  • 无特殊说明密码默认:pipbest.com