stars_go @ 2022-03-27 20:12:26
n,k=list(map(int,input().split()))
A=[]
B=[]
for i in range(1,n+1):
if i%k==0:
A.append(i)#用的append接收,但是pycharm没有接收到数
else:
B.append(i)
def Get_aswavg():
sum=0
for intem in list:
sum+=item
return sum/len(list)
aws1=Get_aswavg(A)
aws2=Get_aswavg(B)
print('%1f'%asw1,end=' ')
print('%1f'%asw2,end=' ')
by hanzk @ 2022-04-28 09:31:01
print('%.1f'%aswl,end=' ') 你缺了个.