标签:pre span color 乘号 nbsp bsp auth 开发 class
__author__ = ‘Tang‘ a = 8 b = 9 c = a + b print(c) # 17 a = 8.0 b = 9 c = a + b print(c) # 17.0 a = 8 b = 9.0 c = a + b print(c) # 17.0
__author__ = ‘Tang‘ # 正数 a = 9 b = 8 c = a - b print(c) # 1 a = 9.0 b = 8 c = a - b print(c) # 1.0 a = 9 b = 8.0 c = a - b print(c) # 1.0 # 负数 a = 8 b = 9 c = a - b print(c) # -1 a = 8.0 b = 9 c = a - b print(c) # -1.0 a = 8 b = 9.0 c = a - b print(c) # -1.0
__author__ = ‘Tang‘ a = 9 b = 8 c = a * b print(c) # 72 a = 9.0 b = 8 c = a * b print(c) # 72.0 a = 9 b = 8.0 c = a * b print(c) # 72.0
__author__ = ‘Tang‘ a = 9 b = 3 c = a / b print(c) # 3.0 a = 9.0 b = 3 c = a / b print(c) # 3.0 a = 9 b = 3.0 c = a / b print(c) # 3.0 a = 9 b = 8 c = a / b print(c) # 1.125 a = 9.0 b = 8 c = a / b print(c) # 1.125 a = 9 b = 8.0 c = a / b print(c) # 1.125
__author__ = ‘Tang‘
a = 9
b = 3
c = a % b
print(c) # 0
a = 9.0
b = 3
c = a % b
print(c) # 0.0
a = 9
b = 3.0
c = a % b
print(c) # 0.0
a = 9
b = 8
c = a % b
print(c) # 1
a = 9.0
b = 8
c = a % b
print(c) # 1.0
a = 9
b = 8.0
c = a % b
print(c) # 1.0
__author__ = ‘Tang‘ a = 9 b = 3 c = a ** b print(c) # 729 a = 9.0 b = 3 c = a ** b print(c) # 729.0 a = 9 b = 3.0 c = a ** b print(c) # 729.0
__author__ = ‘Tang‘ a = 9 b = 3 c = a // b print(c) # 3 a = 9.0 b = 3 c = a // b print(c) # 3.0 a = 9 b = 3.0 c = a // b print(c) # 3.0 a = 5 b = 2 c = a // b print(c) # 2 a = 5.0 b = 2 c = a // b print(c) # 2.0 a = 5 b = 2.0 c = a // b print(c) # 2.0
标签:pre span color 乘号 nbsp bsp auth 开发 class
原文地址:https://www.cnblogs.com/tangkaishou/p/9462775.html