TOC Draft for Information Only
ContentPython
PythonPython is an interpretered general purpose scripting language created by Guido van Rossum. The offical web site of python is www.python.org .Python Integrated Development EnvironmentPython has a built-in integrated development environment called Integrated Development and Learning Environment (IDLE). IDLE has two main window types, the shell window and the editor window. It is possible to have multiple editor windows simultaneously.The most common python shell window can be opened by entering the Python FeaturesThe typical features of Python are Python scripts execution, Python indentation, Python variable, and Python comment.Python Scripts ExecutionPython scripts can be executed in an interactive mode by entering in the shell window directly, or in script mode by saving Python script in a python file withPython IndentationIndentation refers to the leading whitespaces at the beginning of a script line. Although code indentation used in other programming languages is for readability only, code indentation play an important role in Python scripting because Python uses code indentation to indicate a block of code. There is no limitation on the number of indentation spaces, but code lines of the same block must have the same number of indentation spaces.Python VariablesA Python variable is created by assigning a value to a variable name. Besides standard python variable, there are two special variable syntaxes used in python.
Python CommentPython use aEncoding DeclarationsIf a comment in the first or second line of the Python script matches the regular expression# -*- coding: <encoding-name> -*-which is recongnized also by GNU Emacs, and # vim:fileencoding=<encoding-name>which is recognized by Bram Moolenaar's VIM. If no encoding declaration is found, the default encoding is UTF-8. In addition, if the first bytes of the file are the UTF-8 byte-order mark Source and Reference
©sideway ID: 200400702 Last Updated: 4/7/2020 Revision: 0 Latest Updated Links
|
Home 5 Business Management HBR 3 Information Recreation Hobbies 8 Culture Chinese 1097 English 339 Travel 7 Reference 79 Computer Hardware 251 Software Application 213 Digitization 32 Latex 52 Manim 205 KB 1 Numeric 19 Programming Web 289 Unicode 504 HTML 66 CSS 65 SVG 46 ASP.NET 270 OS 431 DeskTop 7 Python 72 Knowledge Mathematics Formulas 8 Set 1 Logic 1 Algebra 84 Number Theory 206 Trigonometry 31 Geometry 34 Calculus 67 Engineering Tables 8 Mechanical Rigid Bodies Statics 92 Dynamics 37 Fluid 5 Control Acoustics 19 Natural Sciences Matter 1 Electric 27 Biology 1 |
Copyright © 2000-2024 Sideway . All rights reserved Disclaimers last modified on 06 September 2019