摘要: import pandas as pdimport numpy as npfrom sklearn.linear_model import Lasso inputfile = './data.csv' # 输入的数据文件data = pd.read_csv(inputfile) # 读取数据 las 阅读全文
posted @ 2022-04-01 21:29 苦情巨树 阅读(287) 评论(0) 推荐(0)
摘要: import pandas as pdfrom sklearn.model_selection import train_test_splitfrom sklearn.linear_model import LogisticRegressionfrom sklearn.metrics import 阅读全文
posted @ 2022-03-27 22:49 苦情巨树 阅读(27) 评论(0) 推荐(0)
摘要: import java.awt.*;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;import java.math.BigDecimal;import java.util.ArrayList;import 阅读全文
posted @ 2021-09-21 23:23 苦情巨树 阅读(31) 评论(0) 推荐(0)
摘要: import java.util.*; public class sizeyunsuan { public static int[] randomCommon(int n,int min, int max){ /* if (n > (max - min + 1) || max < min) { re 阅读全文
posted @ 2021-09-21 21:08 苦情巨树 阅读(12) 评论(0) 推荐(0)
摘要: excel文件,并存为csv格式,并把优秀变成90分,良好80分,合格60,不合格0分。 csv格式文件转换为html文件。 阅读全文
posted @ 2020-05-27 15:36 苦情巨树 阅读(70) 评论(0) 推荐(0)
摘要: from random import randomdef printInfo(): print("2019310143120") print("这个程序模拟两个选手A和B的乒乓比赛") print("程序运行需要A和B的能力值(以0到1之间的小数表示)")def getInputs(): a = e 阅读全文
posted @ 2020-05-20 15:43 苦情巨树 阅读(111) 评论(0) 推荐(0)
摘要: import requestsfor i in range(1,21): r = requests.get("http://www.bing.com/") r.raise_for_status() r.encoding='utf-8' print(r.status_code)print(r.text 阅读全文
posted @ 2020-05-13 15:37 苦情巨树 阅读(130) 评论(0) 推荐(0)
摘要: import numpy as npfrom PIL import Imagevec_el = np.pi/2.2vec_az = np.pi/4depth = 10im = Image.open("D:\应用\学习2\照片.jpg").convert('L')a = np.asarray(im). 阅读全文
posted @ 2020-05-06 15:38 苦情巨树 阅读(177) 评论(0) 推荐(0)
摘要: import numpy as npimport matplotlib.pyplot as pltimport matplotlibmatplotlib.rcParams["font.family"] = "SimHei"matplotlib.rcParams["font.sans-serif"] 阅读全文
posted @ 2020-05-06 15:33 苦情巨树 阅读(161) 评论(0) 推荐(0)
摘要: turtle 代码 import turtle turtle.pensize(1)turtle.pencolor('red')turtle.fillcolor('red')turtle.speed(5)turtle.penup()turtle.goto(-30, 100)turtle.pendown 阅读全文
posted @ 2020-03-23 23:19 苦情巨树 阅读(127) 评论(0) 推荐(0)