What does -= mean in python subtraction assignment operator - php中文网

In Python, the function of the -= operator is to subtract the value of the variable from the right and assign the result to the variable, which is equivalent to a=a-b. 1) It is suitable for data types such as integers, floating point numbers, lists and strings. 2) Pay attention to type consistency, performance and code readability when using it. 3) The string is immutable and similar effects ...

Vieraile visit

Hakusi ja tämä tulos

  • Tämä hakutermi näkyy tuloksessa: python list of operations
  • Sivusto vastaa yhtä tai useampaa hakutermiäsi
  • Muut verkkosivut, jotka sisältävät hakutermisi, linkittävät tähän tulokseen
  • Tulos on kielellä Suomi