Przeglądaj źródła

12月29日晚,更新文件名异常

张世豪 3 tygodni temu
rodzic
commit
9151f4a27c
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      rongzhong.py

+ 1 - 1
rongzhong.py

@@ -188,7 +188,7 @@ def getImg(x,y,url,name,sheetName,xLabel,YLabel,numArr,fileUrl,loc):
     y_pred = model.predict(x.to_numpy().reshape(-1, 1))
     fig.add_trace(go.Scatter(x=x, y=y_pred, mode='lines', name='拟合直线'))
 
-    html_file_path = f"{url}/{name}频度统计图.html"
+    html_file_path = f"{url}/{name}.html"
     pio.write_html(fig, file=html_file_path, auto_open=False)
     # 在表格中插入html
     workbook = load_workbook(filename=fileUrl)