python print a+=1 报错

来源:互联网 发布:图片纠偏软件 编辑:程序博客网 时间:2024/06/02 03:42

今天突然发现 Python中
print a+=1会报错
而 a+=1却能正常执行
请问有没有人知道为什么?