11 lines
436 B
Python
11 lines
436 B
Python
#!/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
|