Python基础一(认识Python、搭建编程环境、第一个Python程序)

认识Python

Python的起源

  Python的作者是著名的“龟叔”Guido van Rossum,他希望有一种语言能够像C语言那样,能够全面的调用计算机的功能接口,又能像shell那样,可以轻松的编程。龟叔从ABC语言看到了希望,龟叔也参与到ABC语言的开发,由于一系列原因ABC语言便没有的快速传播使用,因此龟叔开始写Python语言。

Python的诞生

  1989年龟叔为了打发无聊的圣诞节,开始编写Python。1991年Python的第一个编译器诞生,它使用C语言编写的,要能够调用C语言的库文件。

Python的定位

  Python一开始龟叔给他的定位是“优雅、简单、明确”

  Python的官网:Python官网下载

搭建编程环境

  下载地址:Python官网根据自己的版本下载自己的程序

  IDE下载地址:PyCharm下载

  PyCharm的注册码:

CZBSQ81IF5-eyJsaWNlbnNlSWQiOiJDWkJTUTgxSUY1IiwibGljZW5zZWVOYW1lIjoiTGl0dGxlIGZlaSIsImFzc2lnbmVlTmFtZSI6IiIsImFzc2lnbmVlRW1haWwiOiIiLCJsaWNlbnNlUmVzdHJpY3Rpb24iOiJGb3IgZWR1Y2F0aW9uYWwgdXNlIG9ubHkiLCJjaGVja0NvbmN1cnJlbnRVc2UiOmZhbHNlLCJwcm9kdWN0cyI6W3siY29kZSI6IklJIiwicGFpZFVwVG8iOiIyMDE5LTAxLTMwIn0seyJjb2RlIjoiUlMwIiwicGFpZFVwVG8iOiIyMDE5LTAxLTMwIn0seyJjb2RlIjoiV1MiLCJwYWlkVXBUbyI6IjIwMTktMDEtMzAifSx7ImNvZGUiOiJSRCIsInBhaWRVcFRvIjoiMjAxOS0wMS0zMCJ9LHsiY29kZSI6IlJDIiwicGFpZFVwVG8iOiIyMDE5LTAxLTMwIn0seyJjb2RlIjoiREMiLCJwYWlkVXBUbyI6IjIwMTktMDEtMzAifSx7ImNvZGUiOiJEQiIsInBhaWRVcFRvIjoiMjAxOS0wMS0zMCJ9LHsiY29kZSI6IlJNIiwicGFpZFVwVG8iOiIyMDE5LTAxLTMwIn0seyJjb2RlIjoiRE0iLCJwY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0GavXTVyWh7PYiKX4bs354ZQLUwwa/cG++2+wNWP+HtBhVxMRNTdVhSm38AknZlD+PTAsWGu9GyLmhti2EnVwGybSD2Dxmhxk3IPCkhKAK+pl0eWYGZWG3tJ9mZ7SowcXLWDFAk0lRJnKGFMTggrWjV8GYpw5bq23VmIqqDLgkNzuoog==

 Python第一个程序

print("hello Python")

思考题:

编写一段程序输出自己的姓名和年龄(使用变量)

name = input("请输入您的姓名:")
age = input("请输入您的年龄:")
print("您的姓名是:",name,"您的年龄是:",age)

 

posted @ 2018-12-04 18:26  fafa_Love  阅读(541)  评论(0编辑  收藏  举报