00 第一组 (abs,pow,sum,divmod ,round)
第一组 (abs,pow,sum,divmod ,round)
会用就行
- abs ,绝对值
v1 = abs(-1)
v2 = vbs(1)
- pow, 次方
ret = pow (2, 5)
print (ret)
- sum , 求和
num_list = [11,22,33,44]
ret = sum (num_list)
print (ret)
- divmod ,商和余数
v1, v2 = divmod (92, 10)
print (v1) # 9
print (v2) # 2