![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
学习笔记
m0_57892392
这个作者很懒,什么都没留下…
展开
-
python考核(代码)
import threadingimport timeimport pymysqldef create(sql, name): cur.execute(f"drop table if exists {name}") cur.execute(sql) print("创建表成功")def change(sql, args): cur.executemany(sql, args) db.commit()def prints(sql): cu.原创 2022-01-16 21:27:11 · 163 阅读 · 0 评论 -
Python高级学习第六课(寒假) 2022-1-13
#1.导入库import pymysql#连接数据库,用try except捕获异常try: db = pymysql.connect(host='localhost', user='root', password='root', database='python_mysql') print('数据库连接成功!')except py.原创 2022-01-13 18:23:53 · 260 阅读 · 0 评论 -
Python高级培训5
super()函数:在子类中调用父类的方法进行使用私有方法,私有属性run():用以表示线程活动的方法。 start():启动线程活动。 unction - 线程函数。 args - 传递给线程函数的参数,他必须是个tuple类型。 kwargs - 可选参数。 import threadingimport timedef run(): print('定时器启动了') print(threading.current_thread()) timer =.原创 2022-01-11 21:51:23 · 98 阅读 · 0 评论 -
Python学习笔记
2021.12.08一、1.print的简单输出 (1).如果直接用print输出,会换行输出 (2).如果使用'',‘分组的话就在一行输出’#输出(直接在编译器里面)#如果是输出数字,就直接print(520)print() #如果是要输出字符串,单引号/双引号均可print('helloworld')或者print("helloworld")#含有运算符的表达式print(3+1)#将数据输出到文件中,其中“a”是指append(...原创 2021-12-08 20:57:47 · 171 阅读 · 0 评论 -
电工电子第一天
电阻 欧姆定律 在同一电路中,通过某段导体的电流跟这段导体两端的电压成正比,和电阻成反比。 公式 串联 电路中形成恒定电流之后,电路中的电荷分布是稳定的,不会在某处不断聚集电荷,因此串联电路中的每个电阻的电流都是相等的,即:I1=I2=I3. 由于沿着电流方向电势降落,所以电路的总电压U=U14=U1-U4,由此可知:串联电阻的总电压等于每个电阻的电压之和,即U=U1+U2+U3; 并联 I=I1+I2+I3; U=U1+U2+U3原创 2021-12-05 23:25:12 · 82 阅读 · 0 评论 -
卷积神经网络(学习笔记)
1.卷积神经网络的概念卷积神经网络(Convolutional Neural Networks, CNN)是一类包含卷积计算且具有深度结构的前馈神经网络(Feedforward Neural Networks),是深度学习(deep learning)的代表算法之一 [1-2] 。卷积神经网络具有表征学习(representation learning)能力,能够按其阶层结构对输入信息进行平移不变分类(shift-invariant classification),因此也被称为“平移不变人工神经网络.原创 2021-09-04 20:58:42 · 1755 阅读 · 1 评论 -
opencv学习笔记
1.数据读取-图像cv.imread( )函数读取图像 1.1读取图像的几种方式: cv.IMREAD_COLOR:加载彩色图像 cv.IMREAD_GRAYSCALE:加载灰度图像 cv.IMREAD_UNCHANGED:加载图像,包括alpha通道import numpy as npimport cv2 as cv#...原创 2021-08-29 18:18:16 · 71 阅读 · 0 评论