python运算符-赋值运算符

 时间:2024-10-15 08:49:33

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中的运算符是什么
  • 热门搜索
    熟视无睹是什么意思 宝宝周岁送什么礼物 basic是什么意思 深入浅出的意思 ceb文件用什么打开 rubbish是什么意思 花枝招展是什么意思 但的意思 查水表是什么意思 不羁的意思