a=20
b=10
c=a+b
print(c)
c+=a
print(c)
c*=a
print(c)
'''
'''
a=20
b=10
c=30
c%=a #c%=a 等同于c=c%a
print(c)
'''
a=20
b=10
c=30
c//=a #c//a等同于c=c//a
print(c)
a=20
b=10
c=a+b
print(c)
c+=a
print(c)
c*=a
print(c)
'''
'''
a=20
b=10
c=30
c%=a #c%=a 等同于c=c%a
print(c)
'''
a=20
b=10
c=30
c//=a #c//a等同于c=c//a
print(c)
本文标题:赋值运算符
本文链接:https://www.haomeiwen.com/subject/shvncltx.html
网友评论