约 1,620 个结果
在新选项卡中打开链接
  1. Python syntax and semantics - Wikipedia

    Python syntax and semantics A snippet of Python code with keywords highlighted in bold yellow font The syntax of the Python programming language is the set of rules that defines how a Python program will be written and interpreted (by both the runtime system and by human readers). The Python language has many similarities to Perl, C, and Java.

  2. Variable (computer science) - Wikipedia

    In statically typed languages such as C, C++, Java or C#, a variable also has a type, meaning that only certain kinds of values can be stored in it. For example, a variable of type "integer" is prohibited from storing text values. [6] In dynamically typed languages such as Python, a variable's type is inferred by its value, and can change according to its value. In Common Lisp, both situations ...

  3. Local variable - Wikipedia

    In computer science, a local variable is a variable that is given local scope. A local variable reference in the function or block in which it is declared overrides the same variable name in the larger scope. In programming languages with only two levels of visibility, local variables are contrasted with global variables. On the other hand, many ALGOL -derived languages allow any number of ...

  4. Naming convention (programming) - Wikipedia

    In computer programming, a naming convention is a set of rules for choosing the character sequence to be used for identifiers which denote variables, types, functions, and other entities in source code and documentation. Reasons for using a naming convention (as opposed to allowing programmers to choose any character sequence) include the ...

  5. Data type - Wikipedia

    The standard type hierarchy of Python 3 In computer science and computer programming, a data type (or simply type) is a collection or grouping of data values, usually specified by a set of possible values, a set of allowed operations on these values, and/or a representation of these values as machine types. [1] A data type specification in a program constrains the possible values that an ...

  6. Free variables and bound variables - Wikipedia

    Free variables and bound variables In mathematics, and in other disciplines involving formal languages, including mathematical logic and computer science, a variable may be said to be either free or bound. Some older books use the terms real variable and apparent variable for free variable and bound variable, respectively.

  7. Member variable - Wikipedia

    Member variable In object-oriented programming, a member variable (sometimes called a member field) is a variable that is associated with a specific object, and accessible for all its methods (member functions).

  8. Declaration (computer programming) - Wikipedia

    Dynamic languages such as JavaScript or Python generally allow functions to be redefined, that is, re-bound; a function is a variable much like any other, with a name and a value (the definition). Here are some examples of declarations that are not definitions, in C: