import numpy as np
from sklearn.svm import SVR
import matplotlib.pyplot as plt
X np.linspace(0,2*np.pi,50).reshape(-1,1)
y np.sin(X)
plt.scatter(X,y) 建模
线性核函数
svr SVR(kernel linear)
svr.fit(X,y.ravel())#变成一维y_ svr.predict(X)
plt.scatter(…
import tkinter as tk
import time
window tk.Tk()
window.title("简易计算器")
window.geometry(300x400)
content
def btn_onclick(data):global contentif data"AC" or data "MC":expression.set()result.set()content elif data :result…