Possible Duplicate:
(可能重复:)
Python: Behaviour of increment and decrement operators
I've always laughed to myself when I've looked back at my VB6 days and thought, "What modern language doesn't allow incrementing with double plus signs?":
(当我回顾我的VB6时,我总是嘲笑自己,并且想:“现代语言不允许用双加号增加?”:)
number++
To my surprise, I can't find anything about this in the Python docs.
(令我惊讶的是,我在Python文档中找不到任何相关内容。)
Must I really subject myself tonumber = number + 1
? (我真的必须让自己受到number = number + 1
吗?)
++/--
notation? (人们不使用++/--
符号吗?)