题解 | #计算带余除法#
计算带余除法
http://www.nowcoder.com/practice/34d3911bf2fd48a285f6396e886a1259
xxx=input() a=int(xxx.split(' ')[0]) b=int(xxx.split(' ')[1]) print(a//b,a%b)
1 int()取整
2 split() 分割
3 // 地板除
% 取余数
计算带余除法
http://www.nowcoder.com/practice/34d3911bf2fd48a285f6396e886a1259
xxx=input() a=int(xxx.split(' ')[0]) b=int(xxx.split(' ')[1]) print(a//b,a%b)
相关推荐