• Basic Concepts


    What is Python?

    1.Welcome to Python!

    Python is a high-level programming language,with applicationgs in numerous areas,including web programming,scripting,scientific computing,adn artificial intelligence.It is very ppular and used by organizations such as Google,NASA,the CIA,and Disney.

    Python is processed at runtime by the interpreter(a program that runs scripts written in an interpreted language such as Python.There is no need to compile your program before executing it.

    Python is a:

      set of editing tools

      development environment

      Programming language

    The three major versions of Python are 1.x,2.x and 3.x.These are subdivided into minor versions,such as 2.7 and 3.3.

    Code written for Python 3.x is guaranteed to work in all future versions.

    Both Python Versiong 2.x and 3.x are used currently.

    This course cobers Python 3.x,but it isn't hard to change from one version to another.

    Python has several different implementations,written in various languages.

    The version used in this course,CPython,is the most popular by far.

    Which of these statements is true?

      Python code must be always compiled

    CPython is an implementation if Python

    Python 1.7 is the most widely used version

    Your First Program

    Let's start off by creating a short program that displays "Hello world!".

    In Python,wo use the print statement to output text:

     1 print('Hello world!')

    2 Hello world! 

    Congratulations!You have written your first program.

     Run,save,and share your Python code on our Code Playground without installing any additional software.When using a computer,you will need to download and install Python from www.python.org.

    Note the >>>in the code above.They are the prompt symbol of the Python console.Python is an interpreted language,which means that each line is executed as it is entered.Python also includes IDLE,the integrated development environment,which includes tools for writing and debugging entire programs.

  • 相关阅读:
    BZOJ 2956: 模积和
    BZOJ 1113: [Poi2008]海报PLA
    停课刷题总结-给自己一点鼓励吧
    BZOJ 2751: [HAOI2012]容易题(easy)
    Vijos 1100 加分二叉树
    BZOJ 1756: Vijos1083 小白逛公园
    BZOJ 1709: [Usaco2007 Oct]Super Paintball超级弹珠
    BZOJ 1652: [Usaco2006 Feb]Treats for the Cows
    BZOJ 1651: [Usaco2006 Feb]Stall Reservations 专用牛棚
    BZOJ 1631: [Usaco2007 Feb]Cow Party
  • 原文地址:https://www.cnblogs.com/scholarly/p/10132106.html
Copyright © 2020-2023  润新知