NameError:名称“ warehouse_initial_quantity_aircondSec”未定义

问题描述

enter image description here

剩余代码:

if id_parts == "EBS04":
            piston_quantity_warehouse = warehouse_initial_quantity_aircondSec + order_from_supplier
            return piston_quantity_warehouse
        elif id_parts == "BWBS03":
            door_quantity_warehouse = warehouse_initial_quantity_bodyworkSec  + order_from_supplier
            return door_quantity_warehouse
        else:
            print("No such id")
    else:
        print("Wrong supplier")
else:
    print("Wrong supplier")
print(warehouseUpdateSupplier)

updateBiosWarehouseInventory()

输入:

Enter Supplier name: tab
The id of the part: abs01
How many orders from supplier: 2

输出:

NameError: name 'warehouse_initial_quantity_aircondSec' is not defined

有人可以帮助我吗?>

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)