错误代码:基数为10的int()的文本无效:

2024-09-29 19:33:23 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在制作一个程序,需要读取一个文件,如果文件中有一个特定的数字,我希望它打印出来,需要重新进货。你知道吗

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

Tags: 文件in程序reforlenchecktable

热门问题