Commit f2f0073a authored by liguangyu06's avatar liguangyu06
Browse files

优化

parent be79bf91
......@@ -37,12 +37,12 @@ product_random = random.randint(0, len(result["data"]["list"]) - 1)
productCode = result["data"]["list"][product_random]["productCode"]
productName = result["data"]["list"][product_random]["productName"]
specifications = result["data"]["list"][product_random]["specifications"]
num = random.randint(1, 5)
num = 1
# print(num)
# print(productCode)
# 获取文件
BASE_DIR = os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))))
file_path = BASE_DIR + "/data/cmdc_files/超发配置导入模板.xlsx"
file_path = BASE_DIR + "/data/cmdc_files/超发配置导入模板1.xlsx"
# 将商品信息写入文件中
excel = HandleExcel(file_path, "Sheet1")
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment