#!/usr/bin/python3
a=21
b=10
c=a+b
print(c)
c=a-b
print(c)
c=a*b
print(c)
c=a/b
print(c)
c=a%b
print(c)
c=a//b
print(c)
c=a**b
print(c)
#!/usr/bin/python3
a=21
b=10
c=a+b
print(c)
c=a-b
print(c)
c=a*b
print(c)
c=a/b
print(c)
c=a%b
print(c)
c=a//b
print(c)
c=a**b
print(c)
本文标题:Python运算符-算数运算符
本文链接:https://www.haomeiwen.com/subject/cghbcltx.html
网友评论