站点统计
  • 文章 66
  • 标签 48
  • 分类 6
  • 留言 31
  • 用户 1
  • 浏览 11351
关于我们
  • 朱猪
  • 前端工程师,seo优化师
  • 豫ICP备2023033834号-1
Python运算符
朱猪 29天前 229

算数运算符

image1.pngimage.png

赋值运算符

等号 = 把等号右边的结果 赋值 给左边的变量。

如:num = 1+2*3 结果num的值为7

复合赋值运算符

运算符

描述

实例

+=

加法赋值运算符

c+=a等效于c=c+a

-=

减法赋值运算符

c-=等效于c=c-a

*=

乘法赋值运算符

c*=a等效于c=c*a

/=

除法赋值运算符

c/=a等效于c=c/a

%=

取模赋值运算符

c%=a等效于c=c%a

**=

幂赋值运算符

c**a等效于c=c**a

//=

取整赋值运算符

c//=a等效于c=c//a


Comments | 0 条评论

*昵称必须填写

评论头像 点击填写昵称和邮箱,方可发布评论
空空如也!
13202404https://www.zmeee.com/zb_users/upload/2024/04/202404241713927496435641.pngPython运算符算数运算符赋值运算符等号 = 把等号右边的结果 赋值 给左边.....https://www.zmeee.com/zb_users/theme/Moments/plugin/img/poster_okclose.pnghttps://www.zmeee.com/zb_users/theme/Moments/plugin/api.php?url=https://www.zmeee.com/zb_users/theme/Moments/plugin/img/poster_zw.png许愿屋
联系客服

河南省焦作市武陟县

客服QQ

1430989477

客服微信

15738586836
图片背景 颜色背景
布局切换 黑暗日光 定时刷新 监听内容 小窗模式
  • 默认默认
  • 默认