python运算符-赋值运算符

 时间:2026-04-21 17:19:54

1、赋值运算符就是在算术运算符后面加了一个 等号

先做算术运算再赋值

2、>>> c = 1

>>> c = c + 1

>>> print(c)

2

3、上面的代码等价于

>>> c = 1

>>> c += 1

>>> print(c)

2

4、python中没有自增 自减运算符

也就是python中没有变量++ 、变量--

python运算符-赋值运算符

5、赋值运算符主要表现在赋值上

python运算符-赋值运算符

  • Python初学者的赋值运算符
  • Python赋值运算符
  • Python运算符
  • python基础之赋值运算符
  • Python中的运算符是什么
  • 热门搜索
    乳腺增生是怎么引起的 桂花糖藕的做法 殇怎么读拼音 为什么word打不开 学籍证明怎么开 自制灯笼的做法 should怎么读 dirty怎么读 羽绒服怎么洗最好 云顶之弈怎么玩