格式化输出的几种方式
除法与取模运算
https://www.nowcoder.com/practice/9fe22ac9e55448f4920886f84efeac58
x = int(input()) y = int(input()) print(x // y, x % y) # print('%.2f' %(x / y)) print('{:.2f}'.format(x / y))
除法与取模运算
https://www.nowcoder.com/practice/9fe22ac9e55448f4920886f84efeac58
x = int(input()) y = int(input()) print(x // y, x % y) # print('%.2f' %(x / y)) print('{:.2f}'.format(x / y))
相关推荐