feat: add math
This commit is contained in:
10
math.py
Normal file
10
math.py
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
print(321 + 12) # 加法运算,输出333
|
||||||
|
print(321 - 12) # 减法运算,输出309
|
||||||
|
print(321 * 12) # 乘法运算,输出3852
|
||||||
|
print(321 / 12) # 除法运算,输出26.75
|
||||||
|
print(321 // 12) # 整除运算,输出26
|
||||||
|
print(321 % 12) # 求模运算,输出9
|
||||||
|
print(321 ** 12) # 求幂运算,输出1196906950228928915420617322241
|
||||||
Reference in New Issue
Block a user