python运算符-赋值运算符

2025-05-26 08:49:41

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

2、>>> c = 1>>> c = c + 1>>> print(c)2

3、上面的代码等价于>挢旗扦渌;>> c = 1>>> c += 1>>> print(c)2

4、python中没有自增 自减运算符也就是python中没有变量++ 、变量--

python运算符-赋值运算符

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

python运算符-赋值运算符
声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
相关推荐
  • 阅读量:84
  • 阅读量:37
  • 阅读量:21
  • 阅读量:74
  • 阅读量:44
  • 猜你喜欢