摘要: 1.除法 除 / 整除 // 求余 % 商和余数的元组 divmod a = 9 b = 2 r1 = a/b print(r1) # 4.5 r2 = a//b print(r2) # 4 r3 = a%b print(r3) # 1 r4 = divmod(a,b) print(r4) # (4 阅读全文
posted @ 2020-07-04 10:45 PythonGirl 阅读(1066) 评论(0) 推荐(0) 编辑