专业英语笔记:Install and Use Python
Python was created in 1991. It has been espcially popular in recent years.

Since Python is so popular and useful, we need to learn something about Python programming.

Download Python from its official website.

https://www.python.org/

Create a new folder python at c:\.

Double-click the Python installer and install Python at the location of C:\python.

First let's start the command-line Python from the start-menu.

You will see a DOS window and the Python prompt: >>>

Now we can use Python in an interactive manner.

This manner is very convenient for us to learn Python grammar.

Task 1. Print a message on the screen.
Task 2. Complete the addition of two integers.
The interactive manner in Python is similar to that in Visual Basic.

Task 3. Take different actions according to the age input from the keyboard.

Let's complete the same in another way. We can write a Python program to do this.
All roads lead to Rome. 条条道路通罗马。
Now let me start IDLE from the start-menu as follows:
We will see a Python shell on the screen:

Firstly, let me try the interactive manner here.

Secondly, let me complete the same task in program manner.
Click File menu, choose New File, and you will see an editor window like this:

Now we can write codes in the text editor as follows:

Save the file to a Python program with the extension of ".py".

Run the Python program "addition.py".
Now we modify the source program so we can input two integers from the keyboard and calculate its sum.

Run the program again and we can something like this:

Where is the Python program - addition.py?

What shall we do to run a Python program if we don't use the IDLE?

1. start DOS window

2. enter the directory c:\python_work

3. Run the python program addition.py

专业英语笔记:Install and Use Python相关推荐

  1. 专业英语笔记(Line Feed and Type Conversion)

    Let's get started. I have some questions for you. 1. What's the difference between need and want? 2. ...

  2. 专业英语笔记:Spring框架

    Now we're learning Spring. The best way to learn Spring is to study its official documentation. The ...

  3. 专业英语笔记:三次信息化浪潮

    Review on What We've Learned It's not what you learn but how you learn that matters. 学习内容不是最重要的,关键是学 ...

  4. Python 的专业英语翻译器实现(TKinter)

    翻译器流程 1:功能实现 软件主要使用了 Requests 库和 Tkinter 窗口视窗设计的模块, 调用有道翻译接口完成翻译功能: 2:Requests 库 在 Web 后台开发过程中, 会遇到需 ...

  5. 计算机专业英语 读书笔记

    告诉大家一个好消息,我终于要做程序员了.成功从一个本科园艺植物学的学生跨考成为计科学硕.所以我决定恶补下计算机专业英语. 选了本书,打算阅读.翻译.后续读书笔记也会更新在博客里. 卜艳萍.周伟老师编著 ...

  6. 计算机专业英语课外笔记,手帐 | 有了这份笔记后 我终于爱上了英语

    每个人应该都会有一个死角,会让自己感觉无能无力. 长这么大,让我感觉最无力的就是英语了,因为懒. 虽然不学英语也能工作.也能好好生活. 但是,人总要自虐一下,要不然生活哪里有那么多的乐趣和新鲜感呢? ...

  7. python学习笔记(一)Python 简单介绍

    Python学习笔记(一)Python 简单介绍 Python介绍 Python简介 Python应用领域 Python是解释型的语⾔ 编译和解释的区别是什么? 编译型vs解释型 编译型 解释型 Py ...

  8. 学习笔记1:更改python下载源

    学习笔记1:更改python下载源,让安装速度更快! 1.常用的国内镜像源 清华镜像源 https://pypi.tuna.tsinghua.edu.cn/simple 中科大镜像源 https:// ...

  9. 19软件班专业英语学期总结

    1.蒲李梅 ( 19242023 ) 2020-12-25 09:15:19 不知不觉,一学期的计算机英语课程已经快要结束了,这一学期的学习,短而充实,让我更加深刻学习了很多英语知识,不仅仅是针对专业 ...

最新文章

  1. 投资100亿美元,谷歌计划在2020年扩建美国办事处和数据中心
  2. Mina框架项目运用
  3. CentOS下防御或减轻DDoS攻击方法(转)
  4. java 循环3次_想请教下如何用for循环猜错3次就退出游戏
  5. Linux 脚本修改ini,Shell脚本读取ini配置文件的实现代码2例
  6. 知乎高赞:什么样的学生最坑导师?
  7. Sentinel 1.7.0 发布,支持 Envoy 集群流量控制
  8. 多线程:实现Callable接口
  9. (干货!)Tomcat性能优化
  10. 毕业三年,同学基本都辞职了,大部分人看完很有同感~
  11. leetcode笔记:Majority Element
  12. HDU 4050 wolf5x 概率dp 难度:1
  13. [android视频教程] 传智播客android开发视频教程
  14. 深信服超融合数据通讯口地址冲突报错处理
  15. Linux关闭防火墙、设置开放端口
  16. lbs多城市切换php源码,多省份多城市多区县切换 专业版(dicky_multicityswitch) dz插件分享,可以随意切换到其它地区分站功能...
  17. backface-visibility
  18. 2.6 修饰符的位置
  19. badger mremap size mismatch数据库异常
  20. 永信至诚:乌镇世界互联网大会闭幕 网络安全人的使命刚刚启航

热门文章

  1. 一线大厂在用的反爬虫方法,看我如何破了它!
  2. 华为与五粮液签署战略合作协议
  3. 【华为大咖分享】9.2018加速度,洞悉DevOps高效能组织的秘密(后附PPT下载地址)
  4. 利用MSFM算法计算程函方程的走时CT胖射线反演法
  5. 从零开始学Pytorch(十二)之凸优化
  6. c++ 设置类型别名
  7. MATLAB_排列组合_组合生成程序
  8. linux定时执行python脚本_ubuntu定时执行python脚本实例代码
  9. python processpoolexector 释放内存_python之ThreadPoolExecutor
  10. Scala开发教程(16): 没有“break”和“continue”的日子