嘗試將1天添加到簡單日期格式。發生在線路 import java.text.SimpleDateFormat
Date date = new Date();
def dateformat = new SimpleDateFormat("YYYY-MM-dd")
def currentDate = dateformat.format(date)
log.info "Current Date
enter image description here如何在此圖中繪製線性迴歸線? 這裏是我的代碼: import numpy as np
import pandas_datareader.data as web
import pandas as pd
import datetime
import matplotlib.pyplot as plt
#get adjusted close