简单教程
提交运行
代码编辑器:
#!/usr/bin/python # -*- coding: UTF-8 -*- a = 10 b = 2 c = 0 c = a + b print "1 - c 的值为:", c c += a print "2 - c 的值为:", c c *= a print "3 - c 的值为:", c c /= a print "4 - c 的值为:", c c = 2 c %= a print "5 - c 的值为:", c c **= a print "6 - c 的值为:", c c //= a print "7 - c 的值为:", c
运行结果: