#解决数据输出时列不对齐的问题,代码略
print(p+1,shoplist[p][0],shoplist[p][1],shoplist[p][2])
price+=shoplist[p][2]
if______
forjinrange(i,len(shoplist)-1):
shoplist[j]shoplist[j+1]
break
s=int(input("请输入需要执行的操作(删除0,添加:1,<结账2:"))
ifs=0:
id=int(input("请输入需要删除的货号:"))
items=________
calcu(items)
s=input("请输入需要增加的商品信息:")
items=items.append(s)
elifs==2:
n=len(df)
fortestintests:
tmp=pd.read_excel(test+"xlsx")
df[test]=0#在df最后插入一列,值均为0
i=j=0
whilei iftmp["学号"][i]==df["学号"][j]: ______ j+=1 returndf df[test+"名次"]=0 s=0 forjinrange(n): ifdf[test][j]>df[test][1]: s+=1 df[test+"名次"][i]=____ no=input("输入学号") ifno=="": rec=df[df.学号==int(no)] iflen(rec)>0: plt.plot(____,rec.values[0][7:]) plt.title(rec.values[0][1]+"历次考试名次波动图") 图a 图1图2 组卷网拥有组卷网、组卷商标,若您发现其他网站违规使用,欢迎您向我们举报
THE END