你好,Python!

Python 入门

Hugo Bowne-Anderson

Data Scientist at DataCamp

学习方式

DataCamp 界面

Python 入门

Python

guido-hba.png

  • 通用编程:构建任何内容

  • 开源!免费!

  • Python 包,也适用于数据科学

    • 许多应用和领域
Python 入门

IPython Shell

执行 Python 命令

ipython_shell.png

Python 入门

IPython Shell

执行 Python 命令

ipython_shell_highlighted.png

Python 入门

IPython Shell

在 DataCamp 的 IPython Shell 中执行计算

Python 入门

Python 脚本

  • 文本文件 - .py

  • Python 命令列表

  • 类似于在 IPython Shell 中输入

DataCamp 平台上的 Python 脚本

Python 入门

Python 脚本

GIF:在脚本中输入 4 + 5 并点击提交答案。 未显示输出。

Python 入门

Python 脚本

python_script_print.gif

  • 使用 print() 从脚本生成输出
Python 入门

DataCamp 界面

DataCamp 界面截图

Python 入门

动手练一练!

Python 入门

Preparing Video For Download...