摘要: import numpy as np import pandas as pd from sklearn.linear_model import Lasso inputfile1 = 'E:/data/data.csv' data=pd.read_csv(inputfile1) lasso=Lasso 阅读全文
posted @ 2023-03-05 20:56 我吃饱可厉害了 阅读(113) 评论(0) 推荐(0)
摘要: 一.箱型图 import pandas as pd import matplotlib.pyplot as plt plt.rcParams['font.sans-serif']=['SimHei']plt.rcParams['axes.unicode_minus']=Falseplt.figure 阅读全文
posted @ 2023-02-26 17:40 我吃饱可厉害了 阅读(167) 评论(0) 推荐(0)
摘要: VGG猫狗分类: import tensorflow as tffrom tensorflow import kerasfrom tensorflow.keras import layers, regularizersimport numpy as npimport osimport cv2impo 阅读全文
posted @ 2022-05-16 18:04 我吃饱可厉害了 阅读(339) 评论(0) 推荐(0)
摘要: # TensorFlow and tf.kerasimport tensorflow as tffrom tensorflow import keras # Helper librariesimport numpy as npimport matplotlib.pyplot as plt print 阅读全文
posted @ 2022-04-25 17:28 我吃饱可厉害了 阅读(26) 评论(0) 推荐(0)
摘要: # -*- coding: utf-8 -*-"""Spyder Editor This is a temporary script file."""import pandas as pdimport numpy as npimport matplotlib.pyplot as pltdef sig 阅读全文
posted @ 2022-03-21 22:55 我吃饱可厉害了 阅读(59) 评论(0) 推荐(0)
摘要: import sysimport pygamepygame.init()size=width,height = 640,480screen=pygame.display.set_mode(size)color=(0,0,0)ball=pygame.image.load("ball.png")ball 阅读全文
posted @ 2021-12-28 23:21 我吃饱可厉害了 阅读(145) 评论(0) 推荐(0)
摘要: import wxfrom python实验2 import classinformationclass MyFrame(wx.Frame):def __init__(self,parent,id):wx.Frame.__init__(self,parent,id,title="班级信息收集程序", 阅读全文
posted @ 2021-12-28 23:17 我吃饱可厉害了 阅读(47) 评论(0) 推荐(0)
摘要: import pymysqldb =pymysql.connect(host='localhost',user='root',password='15019599752',database='mrsoft',charset='utf8')#使用cursor()方法创建一个游标对象cursor = d 阅读全文
posted @ 2021-12-28 23:14 我吃饱可厉害了 阅读(36) 评论(0) 推荐(0)
摘要: import pygameimport sysimport random class Bird(object): """定义一个鸟类""" def __init__(self): """定义初始化方法""" self.birdRect = pygame.Rect(65, 50, 50, 50) # 阅读全文
posted @ 2021-12-23 00:28 我吃饱可厉害了 阅读(208) 评论(0) 推荐(0)
摘要: import wxfrom python实验2 import classinformationclass MyFrame(wx.Frame): def __init__(self,parent,id): wx.Frame.__init__(self,parent,id,title="班级信息收集程序 阅读全文
posted @ 2021-12-12 01:06 我吃饱可厉害了 阅读(30) 评论(0) 推荐(0)