From 6834ac6a43aecfe3c174a41b60c221979ffb127a Mon Sep 17 00:00:00 2001 From: whb <17803890193@163.com> Date: Wed, 24 Jul 2024 09:27:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=BB=91=E7=AA=97=E5=8F=A3?= =?UTF-8?q?=E8=BF=90=E8=A1=8Cpython=E4=BB=A3=E7=A0=81=E7=94=9F=E6=88=90?= =?UTF-8?q?=E5=A4=9A=E5=BC=A0=E7=9B=B8=E5=90=8C=E5=9B=BE=E7=89=87=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../financial_bigdata/controller/stu/JupyterController.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/com/sztzjy/financial_bigdata/controller/stu/JupyterController.java b/src/main/java/com/sztzjy/financial_bigdata/controller/stu/JupyterController.java index 546ec4c..dd5f828 100644 --- a/src/main/java/com/sztzjy/financial_bigdata/controller/stu/JupyterController.java +++ b/src/main/java/com/sztzjy/financial_bigdata/controller/stu/JupyterController.java @@ -134,6 +134,11 @@ public class JupyterController { for (int i = 0; i < lines.length; i++) { + // 跳过注释行 + if (lines[i].trim().startsWith("#")) { + continue; + } + String imgPathv = IdUtil.simpleUUID(); String plotFile = pyPath + imgPathv + ".png";