文章内容

2020/11/17 11:07:07,作 者: 黄兵

Python自增运算

在其他语言中自增运算时这样写的:

i++

在Python中自增运算是怎么写的呢?

写法如下:

number += 1


参考资料:

1、Python integer incrementing with ++ [duplicate]

分享到:

发表评论

评论列表