我正在制作一个程序,需要读取一个文件,如果文件中有一个特定的数字,我希望它打印出来,需要重新进货。你知道吗
table=[[gtin1[0][0], "re-stocking level"]]
#check for zero
for i in range (len(gtin1)):
if int(gtin1[i][3])<=0:
item=[gtin1[i][0],gtin1[i][1]]
table.append(item)
print tabulate(table,headers="firstrow")
This is the table
Gtin-8 Product description Quinty Price total
-------- --------------------- -------- ------- -------
12345670 red cars 2 0.5 1
目前没有回答
相关问题 更多 >
编程相关推荐